Skip to content

Implementing custom persistor #1481

Open
@flusterIO

Description

@flusterIO

Is it possible to write a short example of a custom persistor? Like even if much of it is ust pseudo-code? The types are super generic, returning any for just about everything.

My big question is for the getItem method, am I supposed to return the state as an object or as stringified json, since the setItem method is fed a json string?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions