We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useRoute()
I'd like to write the following code on one of my VitePress pages:
<script setup> import { useRoute } from 'vitepress'; import { watch } from 'vue'; const route = useRoute(); watch(route.query, (newQuery) => { // Do something.... }); </script>
However, the current useRoute() object does not provide access to query parameter information.
I'd like to be able to access the search property of the current location as is possible in vue-router:
search
vue-router
https://router.vuejs.org/api/interfaces/RouteLocationNormalizedLoaded.html#query
No response
The text was updated successfully, but these errors were encountered:
use useUrlSearchParams from vueuse instead
useUrlSearchParams
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
I'd like to write the following code on one of my VitePress pages:
However, the current useRoute() object does not provide access to query parameter information.
Describe the solution you'd like
I'd like to be able to access the
search
property of the current location as is possible invue-router
:https://router.vuejs.org/api/interfaces/RouteLocationNormalizedLoaded.html#query
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: