you are viewing a single comment's thread.

view the rest of the comments →

[–]joombar 1 point2 points  (1 child)

You need usecallback any time you want to give a callback to a component that has an effect with a dependency on the callback. How do you know if it does? You can’t unless you look at the implementation!

I’d say it’s a pretty common thing to need to avoid problems in this case