Skip to content

Add a persistent state option #5

@Andy-set-studio

Description

@Andy-set-studio

It could be handy for state to persist in local storage. This is especially true for small, PWAs.

Todos

  • Add constructor parameter
  • Feature detect that storage is available
  • Hydrate from local storage on instantiation if enabled
  • Self-subscribe to changes and automatically update storage
  • Add clear method if the local storage needs clearing for some reason

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions