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
I'm working on routing transition where previous node and current node are intersecting between with the set timeout around 2000ms. Everything seems perfect except that when routing all state in previous node has reset to initial state such as the scrollY has reset to 0 and all states and useEffect has been call once again. This cause me a lot of problems for example If I try to navigate from the Menu Drawer, all exiting node states get reset to initial state and menu drawer is disappear instantly. Are there any way to freeze and stop re-rendering the previous node while transitioning? I have found this react-freeze but have no idea how to freeze directly to the exiting node while transitioning.
onExit={(node) => { //freeze node and stop rerender }
I'm working on routing transition where previous node and current node are intersecting between with the set timeout around 2000ms. Everything seems perfect except that when routing all state in previous node has reset to initial state such as the scrollY has reset to 0 and all states and useEffect has been call once again. This cause me a lot of problems for example If I try to navigate from the Menu Drawer, all exiting node states get reset to initial state and menu drawer is disappear instantly. Are there any way to freeze and stop re-rendering the previous node while transitioning? I have found this react-freeze but have no idea how to freeze directly to the exiting node while transitioning.
onExit={(node) => { //freeze node and stop rerender }
localhost-3000-google-chrome-2024-05-08-18-36-57-000002205-000007131_LDpjOlpu.mp4
The text was updated successfully, but these errors were encountered: