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
So I keep my window open on route change via closeOnUnmount prop. But after changing the route, functions are not working as expected in the children. Please see below:
After changing the route, count stays where I left and handleClick function does not work anymore. Do you have any idea how can I find a way to avoid this behavior. Thanks in advance.
The text was updated successfully, but these errors were encountered:
I was able to reproduce the issue. Thank you for well describing it. At first glance, it seems that unmount the page cause any child to get unmounted too. That might explain why the popup doesn't work.
We might need to figure out a way to make it work without crossing the line into a bad pattern.
rmariuzzo
changed the title
Functions won't work after route change
Child windows doesn't work when parent unmount (change route)
Nov 27, 2022
So I keep my window open on route change via
closeOnUnmount
prop. But after changing the route, functions are not working as expected in the children. Please see below:After changing the route, count stays where I left and handleClick function does not work anymore. Do you have any idea how can I find a way to avoid this behavior. Thanks in advance.
The text was updated successfully, but these errors were encountered: