plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.38k stars 2.06k forks source link

preserve state in hot reload #460

Open nicolaskruchten opened 5 years ago

nicolaskruchten commented 5 years ago

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 commented 1 year ago

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