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.
In Review
π₯ Feedback
9 months ago

Morse
Get notified by email when there are changes.
In Review
π₯ Feedback
9 months ago

Morse
Get notified by email when there are changes.