Async views: Route changes before old view is unmounted #2574
-
Clicking on "page 2" link results in the first page being mounted until page 2 finishes loading, but the This results in errors if page 1 expects to always have some parameters, for example when typed file-based routing is used. The question is: is this expected? And if it is, is there any way to ignore the route change to another page and still use parameters from the first route, while still having reactivity in case only the parameter is changed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is just Suspense. To avoid it, don’t use suspense. For async requests, use data loaders (unplugin Vue router) instead |
Beta Was this translation helpful? Give feedback.
This is just Suspense. To avoid it, don’t use suspense. For async requests, use data loaders (unplugin Vue router) instead