How do I get instance objects on a component #1870
-
Reproductionnone Steps to reproduce the bugrouter.afterEach((to, from) => { Expected behaviorGets the instance of the rendered component under the route Actual behaviorI tried a lot of things but I couldn't get it Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jun 5, 2023
Replies: 1 comment
-
Instances are a private API, they are used internally for in-component navigation guards. In practice is better off not using them in application code as it leads to non typed and fragile coupling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instances are a private API, they are used internally for in-component navigation guards. In practice is better off not using them in application code as it leads to non typed and fragile coupling