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

preserve state in hot reload #460

Closed
nicolaskruchten opened this issue Nov 19, 2018 · 2 comments
Closed

preserve state in hot reload #460

nicolaskruchten opened this issue Nov 19, 2018 · 2 comments
Labels
feature something new P3 backlog

Comments

@nicolaskruchten
Copy link
Contributor

Hot reloading (#66) is awesome, so here's the next-level feature: state-preserving hot-reloading!

Right now if I'm 50 clicks into an interaction with a Dash app and I modify the code, the frontend reloads and resets back to its initial state. What I'd love to see is for the app to reload with the same state as I was in before, much like react hot reloading works :)

@nicolaskruchten
Copy link
Contributor Author

I've actually built out a little pattern to do this with the state in the URL: https://community.plotly.com/t/boilerplate-starter-app-with-state-in-url-and-state-aware-hot-reloading/71821

@gvwilson gvwilson self-assigned this Jul 17, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added the P3 backlog label Aug 13, 2024
@gvwilson gvwilson changed the title State-preserving hot reload preserve state in hot reload Aug 13, 2024
@gvwilson gvwilson added the feature something new label Aug 13, 2024
@ndrezn
Copy link
Member

ndrezn commented Nov 19, 2024

In Dash Enterprise we have deep links integration which also enables this kind of development. @nicolaskruchten's example is pretty wicked as well!

@ndrezn ndrezn closed this as completed Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants