Skip to content

Create a new SSR router history for each router instance #1229

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

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

skirtles-code
Copy link
Contributor

Closes #1219.

A memory history is stateful, so the server should create a new instance every time.

For reference, this is how the Vite SSR example is implemented:

https://github.com/vitejs/vite/blob/46ecda4df229e4cf3e9e364cb6271198f9fdfc40/packages/playground/ssr-vue/src/router.js

@NataliaTepluhina NataliaTepluhina merged commit b5c968e into vuejs:master Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSR guide - stateful singleton (history) in router example?
2 participants