Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Correctly configuring vue-router for use with ream #27

Closed
marianhlavac opened this issue Mar 31, 2017 · 2 comments
Closed

Correctly configuring vue-router for use with ream #27

marianhlavac opened this issue Mar 31, 2017 · 2 comments

Comments

@marianhlavac
Copy link

There should be in the documentation a mention of how to configure vue-router correctly.

@jnv found out that you have to use the history mode. See cvut/fittable-next@8444947#diff-15ee858ae5d5aa9b3e2846cfd1c4c466

Without the fix it's not possible to match server-rendered content on client.

@egoist
Copy link
Collaborator

egoist commented Mar 31, 2017

Ah yes, I should mention this in the docs, and it's recommend to always use () => import('./path/to/view.vue') for code-split

@egoist
Copy link
Collaborator

egoist commented Apr 6, 2017

Doc has been updated for this. https://ream.github.io/ream/#/?id=router-instance

@egoist egoist closed this as completed Apr 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants