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
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
useRefto 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