Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with vue-use useRouteQuery #3

Open
aantn opened this issue Nov 7, 2021 · 3 comments
Open

Doesn't work with vue-use useRouteQuery #3

aantn opened this issue Nov 7, 2021 · 3 comments

Comments

@aantn
Copy link

aantn commented Nov 7, 2021

See vueuse/vueuse#902 (comment)

@ambit-tsai
Copy link
Owner

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

@aantn
Copy link
Author

aantn commented Nov 9, 2021

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?

@ambit-tsai
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants