Skip to content

preserve state in hot reload #460

Closed
Closed

Description

@nicolaskruchten

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 :)

Activity

  1. nicolaskruchten commented on Jan 24, 2023

    @nicolaskruchten
    ContributorAuthor

    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

  2. self-assigned this
    on Jul 17, 2024
  3. removed their assignment
    on Aug 2, 2024
  4. changed the title [-]State-preserving hot reload[/-] [+]preserve state in hot reload[/+] on Aug 13, 2024
  5. ndrezn commented on Nov 19, 2024

    @ndrezn
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions