vuejs / router

🚦 The official router for Vue.js

Home Page:https://router.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sallow routing

the-pesar opened this issue · comments

What problem is this solving

I saw shallow routing feature in React and SvelteKit, but it's strange to me why we don't have this important feature in Vue-router! I think you are familiar enough with this feature that there is no need for me to explain.

Proposed solution

Routing without navigation.

You can already do history.pushState or replaceState. Most of the times the goal is to add state to the history entry and this can be achieved when pushing with the state option. Note there is an example for modals as an e2e test in this repo, in case that’s what you are looking for