vuejs / vue-router

🚦 The official router for Vue 2
http://v3.router.vuejs.org/
MIT License
18.99k stars 5.06k forks source link

Page refreshing after replacing the current route ( Component getting unmounted and mounted again) #3865

Closed adithya-beo closed 11 months ago

adithya-beo commented 12 months ago

I have been using router.replace method to add the params in my exusting url. But the page is getting refreshed and my settings ( setting a value in the dropdown) getting reset. Any solution for this?

posva commented 11 months ago

This could be the result of having a key attribute that is too strict. Don't ignore the issue instructions please.

adithya-beo commented 11 months ago

Could you please provide me the code to avoid the issue?