Skip to content

Document SSR support and behavior #218

@PeppeL-G

Description

@PeppeL-G

It took some time to search for, but after a while I found #56 (comment):

By working server side, I mean it should not cause an error.

Local Storage is a client-side browser API, so on the server it returns the default value of the store. Please advise if you are seeing a different behavior.

Would it be possible to mention this in the docs (in the README file)? I guess most use Svelte with SvelteKit, and in SvelteKit (with SSR) this is a quite important piece of information.

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