usePageData #
The data of the current page, or undefined for a route without a page.
Usage #
TypeScript
import { usePageData } from 'kawapress/client'
const page = usePageData()
const title = page.value?.titleReturns The page data, which changes with the route.
Full type signature
TypeScript
function usePageData(): ComputedRef<PageData | undefined>

Comments