You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem does this feature solve?
When navigating between routes, the changes to state happen before the previous component has been unmounted.
This results in recalculation of any computed properties that rely on the state, even though we'll remove this component a millisecond later.
Route change should fire all relevant navigation signals, but it shouldn't change the state until the old component has been unmounted, as otherwise it's creating side-effects
What problem is this solving
Copied from here: vuejs/vue-router#3393
Is it sorted?
What problem does this feature solve?
When navigating between routes, the changes to state happen before the previous component has been unmounted.
This results in recalculation of any computed properties that rely on the state, even though we'll remove this component a millisecond later.
Route change should fire all relevant navigation signals, but it shouldn't change the state until the old component has been unmounted, as otherwise it's creating side-effects
What does the proposed API look like?
the step 11 "dom updates triggered" here https://next.router.vuejs.org/guide/advanced/navigation-guards.html#the-full-navigation-resolution-flow should be split up into
unmount old component -> update route state -> mount new component
Proposed solution
Unmount when changing routes
Describe alternatives you've considered
Use something other than vue
The text was updated successfully, but these errors were encountered: