useRoute #
Current route of the app, updated by every navigation.
Usage #
TypeScript
import { useRoute } from 'kawapress/client'
const route = useRoute()
console.log(route.value.path)Returns A read-only ref of the route.
Full type signature
TypeScript
function useRoute(): Readonly<ShallowRef<Route>>

Comments