From: Eduardo San Martin Morote Date: Thu, 2 Jul 2020 21:23:10 +0000 (+0200) Subject: docs: remove outdated missing features X-Git-Tag: v4.0.0-beta.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6a658c84d0cecb3f7b0b2f6dd2a78bf00027a7;p=thirdparty%2Fvuejs%2Frouter.git docs: remove outdated missing features --- diff --git a/README.md b/README.md index a6247bc6..d639e522 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,9 @@ Check the [playground](https://github.com/vuejs/vue-router-next/tree/master/play - `router.match` and `router.resolve` are merged together into `router.resolve` with a slightly different signature. Check it's typing through autocomplete or [Router's `resolve` method](https://github.com/vuejs/vue-router-next/blob/master/src/router.ts) - `router.getMatchedComponents` is now removed as they can be retrieved from `router.currentRoute.value.matched`: ```js - router.currentRoute.value.matched - .flatMap(record => Object.values(record.components)) + router.currentRoute.value.matched.flatMap(record => + Object.values(record.components) + ) ``` - If you use a `transition`, you may need to wait for the router to be _ready_ before mounting the app: ```js @@ -113,11 +114,6 @@ These are technically breaking changes but they fix an inconsistent behavior. ``` Note this will work if `path` was `/parent/` as the relative location `home` to `/parent/` is indeed `/parent/home` but the relative location of `home` to `/parent` is `/home` -### Missing features - -- `KeepAlive` is only partially supported. Namely, the context (`this`) is not working properly -- Partial support of per-component navigation guards. `beforeRouteEnter` doesn't invoke its callback - ## Contributing See [Contributing Guide](https://github.com/vuejs/vue-router-next/blob/master/.github/contributing.md).