Could I use some hooks in Vue Component? #2002
Answered
by
brillout
flyerH
asked this question in
Help & Questions
-
For example, I want to report some data before the page jump, since the data depends on some states in the component, if I define the onBeforeRoute.ts file, I have to mount these states on the pageContext so that they can be used in onBeforeRoute.ts. However, this is not very friendly. Is there any solution like the following?
|
Beta Was this translation helpful? Give feedback.
Answered by
brillout
Dec 16, 2024
Replies: 1 comment 12 replies
-
What would this |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems related to Vue, not to Vike.
Thank you 💚