From: Eduardo San Martin Morote Date: Mon, 19 Oct 2020 08:51:27 +0000 (+0200) Subject: docs: migration exact X-Git-Tag: v4.0.0-rc.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cbf728a30411603293f4286d9713ffe50790be4;p=thirdparty%2Fvuejs%2Frouter.git docs: migration exact --- diff --git a/docs/guide/migration/index.md b/docs/guide/migration/index.md index afc4c71e..019c3100 100644 --- a/docs/guide/migration/index.md +++ b/docs/guide/migration/index.md @@ -178,9 +178,14 @@ with ### Removal of the `exact` prop in `` -The `exact` prop has been removed because the caveat it was fixing is no longer present. See the [RFC about active matching](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0028-router-active-link.md) changes for more details. +The `exact` prop has been removed because the caveat it was fixing is no longer present so you should be able to safely remove it. There are however two things you should be aware of: -**Reason**: As Promises become available in all major browsers, we try to natively integrate them in Vue Router's API. +- Routes are now active based on the route records they represent instead of the generated route location objects and their `path`, `query`, and `hash` properties +- Only the `path` section is matched, `query`, and `hash` are taken into account anymore + +If you wish to customize this behavior, e.g. take into account the `hash` section, you should use the [`v-slot` API](https://next.router.vuejs.org/api/#router-link-s-v-slot) to extend ``. + +**Reason**: See the [RFC about active matching](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0028-router-active-link.md#summary) changes for more details. ### Navigation guards in mixins are ignored