Skip to content

State is not preserved when hot reloading #328

Closed
@tomduncalf

Description

@tomduncalf

I would expect the app state to be preserved when hot reloading occurs, but this doesn't seem to be the case – the state always resets to the initial state.

Simple reproduction test case: https://github.com/tomduncalf/create-react-app-state-hmr-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions