Find components to be resolved after navigation in beforeEach (ex-getMatchedComponents) #1621
-
Hello every one! 👋🏻 It is written that Can some one please advice me how can I get list of the components (including nested) to be resolved before navigation? Previously it was possible using router.beforeEach((to, from, next) => {
const next = router.getMatchedComponents(to);
const prev = from ? router.getMatchedComponents(from) : [];
// do something like - detect what new components will be rendered after the navigation
return next();
}) Thanx in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
b12k
Mar 3, 2023
Replies: 1 comment
-
I created a library in to solve this: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
b12k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created a library in to solve this:
Vue 3 Router Get Matched Components