From: Eduardo San Martin Morote Date: Fri, 24 Apr 2020 12:05:27 +0000 (+0200) Subject: docs: note about transition and initial navigation X-Git-Tag: v4.0.0-alpha.8~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fed5aebde4e05b6f7a22291f1a93123c0082623;p=thirdparty%2Fvuejs%2Frouter.git docs: note about transition and initial navigation --- diff --git a/README.md b/README.md index dea7f493..d5a2acda 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,13 @@ Since the library is still unstable **and because we want feedback** on bugs and ], } ``` +- If you use a `transition`, you need to wait for the router to be _ready_ before mounting the app: + ```js + app.use(router) + // Note: on Server Side, you need to manually push the initial location + router.isReady().then(() => app.mount('#app')) + ``` + Otherwise there will be an initial transition as if you provided the `appear` prop to `transition` #### Improvements