Remove `useCallback` usage from the HeroProUI components

useCallback is very dangerous to use, you just need to miss adding a dependency in the array and you broke your app, debugging is a nightmare.

useCallback is not needed if you never put a function inside a dependency of useEffect, useCallback, useMemo.

React compiler is coming soon and will remove the need for it anyway.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

πŸ“₯ Feedback

Date

9 months ago

Author

Morse

Subscribe to post

Get notified by email when there are changes.