Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Guide on hydrate for SSR #922

Closed
Jamiewarb opened this issue Dec 24, 2021 · 1 comment
Closed

[Docs] Guide on hydrate for SSR #922

Jamiewarb opened this issue Dec 24, 2021 · 1 comment

Comments

@Jamiewarb
Copy link

Jamiewarb commented Dec 24, 2021

When the store values differ on Server and Client, such as when using useStorage from Vueuse, the client store needs to be hydrated manually.

There's a section on that within the API reference part of the docs here: https://pinia.vuejs.org/api/interfaces/pinia.DefineStoreOptionsInPlugin.html#hydrate

However, I wanted to propose adding a small section on it under state within the Guide part of the docs.

I've opened this issue to ask for your thoughts on that @posva before I submit a PR with potential documentation for it.

Let me know what you think :)

@Jamiewarb
Copy link
Author

Aggregated with other docs recommendations in #829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant