]> git.ipfire.org Git - thirdparty/vuejs/router.git/commit
feat: improve route access
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Mar 2020 16:45:12 +0000 (17:45 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Mar 2020 16:45:12 +0000 (17:45 +0100)
commitbaf266cd1bd6cafd32d244f185e340bee10af32c
treef54b42cbc23baad1727b5d796e07b8b88c27ea12
parent825c741d92b362628c44ef99d76d6186800655b8
feat: improve route access

BREAKING CHANGE: `useRoute` now retrieves a reactive RouteLocationNormalized instead of a Ref<RouteLocationNormalized>.
  This means there is no need to use `.value` when accessing the route. You still need to wrap it with `toRefs` if you want to expose parts of the route:
  ```js
  setup () {
    return { params: toRefs(useRoute()).params }
  }
  ```
playground/App.vue
src/index.ts
src/router.ts
src/utils/injectionSymbols.ts