Skip to content

Commit

Permalink
fix(view): handle @vue/compat automatically
Browse files Browse the repository at this point in the history
Fix #1315
  • Loading branch information
posva committed Apr 20, 2022
1 parent 5ad4864 commit 92becf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RouterView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export const RouterViewImpl = /*#__PURE__*/ defineComponent({
route: Object as PropType<RouteLocationNormalizedLoaded>,
},

// Better compat for @vue/compat users
// https://github.com/vuejs/router/issues/1315
compatConfig: { MODE: 3 },

setup(props, { attrs, slots }) {
__DEV__ && warnDeprecatedUsage()

Expand Down

0 comments on commit 92becf6

Please sign in to comment.