Skip to content

PersistedState: Add a way to validate values #151

@webJose

Description

@webJose

Describe the feature in detail (code, mocks, or screenshots encouraged)

I have already gone through this with svelte-persisted-store: Software evolves, and so the shapes of the data that is stored in local/session storage. Today, I store a Boolean, but tomorrow I may add a third option, so now I want to store an enum. The store should have a way to validate stored data and potentially upgrade it/fix it. Yes, fixing should be an option: People can mess with the value by hand.

What type of pull request would this be?

Enhancement

Provide relevant links or additional information.

*Don't know the difference between "Enhancement" and "New Feature".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions