Navigation with route obj keeps previous params #2300
-
ReproductionSteps to reproduce the bugvue-router 4.2.5
##vue-router 4.3.0+
Expected behaviorWhen navigating with a raw obj like Actual behaviorIt's entering in an infinite loop Additional informationI've put a console log in router.js > |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This was a fix in #2031 |
Beta Was this translation helpful? Give feedback.
-
nice, setting the param with empty fixed and not having to call |
Beta Was this translation helpful? Give feedback.
This was a fix in #2031
You can pass the optional param as an empty string instead. BTW you can also not use
next
(better) and copy just the params and reuse the name instead of copying the whole to object