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

Don't recreate components #134

Open
stemaDev opened this issue Jun 10, 2022 · 1 comment
Open

Don't recreate components #134

stemaDev opened this issue Jun 10, 2022 · 1 comment

Comments

@stemaDev
Copy link

Is it possible to have the already opened routes to be maintained, so that when I go back to that route it doesn't start from the beginning but rather what I did on that route before is maintained? Instead of adding/removing the components, their visibility should be changed when navigating. Is that possible?

@flipkickmedia
Copy link

You should probably store this data inside the component state rather than using routes. e.g. use a context to store the state of some interaction, then when you reload the component check the context to see what state to load. Is your use case different from this approach?

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

No branches or pull requests

2 participants