Replies: 1 comment
-
Yes, Remix will re-render your app on navigation. The As for scroll location, the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a sidebar, whose state and scroll position does not change when the user navigates to other pages, all using the same
_layout.jsx
file.However when I go to another page, the sidebar's state (in this case, the tabs which are open) resets and its scroll resets to the top of the page. Is this the expected behavior? If not, how can I keep its state?
I have tried using context, zustand and jotai, but all of these states reset when I change the page. I was under the impression that the component does not mount and remount when using a or .
For context, I am trying to create a sidebar with similar properties to this.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions