ambit-tsai/vue2-helpers

Doesn't work with vue-use `useRouteQuery`

aantn opened this issue · 3 comments

It looks like vue-router's problem. You can find the related issues from
https://github.com/vuejs/vue-router/issues?q=NavigationDuplicated

aantn commented

Is the behaviour the same with useRoute from Vue 3?

Using vue2-helpers breaks useRouteQuery from vue-use, however useRouteQuery seems to work fine with Vue 3. Would it be possible to fix this by updating vue2-helpers to not call replaceRoute when the query changes between two identical values?

In Vue3, you must be using vue-router@4, and use vue-router@3 in Vue2.
There are some differences between the two.

You may need the solution at No stacktrace on NavigationDuplicated error uncaught in promise #2881