flutter_hooks
flutter_hooks copied to clipboard
useUpdateEffect needed
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