Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useUpdateEffect needed #442

Open
soxft opened this issue Aug 14, 2024 · 0 comments
Open

useUpdateEffect needed #442

soxft opened this issue Aug 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@soxft
Copy link

soxft commented Aug 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants