I am trying to set the Query Parameters without reloading component in Vue with Vue-Router. But using below code it reloads the component:
this.$router.replace({query: this.filters});
How we can stop reload the component while changing the Query Parameters?
this.$router.replace({ ...this.$router.currentRoute, query: this.filters });
Going to the current path will not render the currently component again
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With