You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have useEffect hook in parent route. When I push a child route and pop it back to parent route containing useEffect, it does not detect any dependency changes and hence does not rerun the code inside useEffect.
Describe the solution you'd like
Can we make the useEffect run again when a child route is popped?
The text was updated successfully, but these errors were encountered:
You need to listen to those stare changes. You can use useState or useValueListenable or other things.
You need something that'll trigger a state change on the parent route
Is your feature request related to a problem? Please describe.
I have useEffect hook in parent route. When I push a child route and pop it back to parent route containing useEffect, it does not detect any dependency changes and hence does not rerun the code inside useEffect.
Describe the solution you'd like
Can we make the useEffect run again when a child route is popped?
The text was updated successfully, but these errors were encountered: