flutter_hooks icon indicating copy to clipboard operation
flutter_hooks copied to clipboard

useUpdateEffect needed

Open soxft opened this issue 1 year ago • 0 comments
trafficstars

I usually use UseEffect when I need to listen for a variable update, but it is also called when the page is first rendered.

Describe the solution you'd like Now I usually use useRef to determine if the useEffect is the first call.

*Describe alternatives you've considered May be we need some kind of Syntactic sugar like in react

soxft avatar Aug 14 '24 09:08 soxft