watching route doesn't fire with composition api #7239
Answered
by
chenxch
gregorvoinov
asked this question in
Help/Questions
-
hi, I want to watch the route to perform different transitions between the pages. But when I'm using the new composition API I have problems with watching the route...
and then this to watch the route, but it doesn't fire on route change
with the old way it works
What I'm missing? |
Beta Was this translation helpful? Give feedback.
Answered by
chenxch
Nov 29, 2022
Replies: 1 comment 8 replies
-
Perhaps you should use
|
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
gregorvoinov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps you should use
useRoute()
returns the current route location. The reason whythis.$route
can be used invue2
is becausethis
points to theroot
, so the latest ones are obtained.