]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: note about transition and initial navigation
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 24 Apr 2020 12:05:27 +0000 (14:05 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 24 Apr 2020 12:05:27 +0000 (14:05 +0200)
README.md

index dea7f493de9e9391b313cdf7ef51f5dd6cba85be..d5a2acdaac2788e5dbfbae14fae2111cc7b71e63 100644 (file)
--- 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