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
?.
title

Returns The page data, which changes with the route.

Full type signature
TypeScript
function usePageData(): ComputedRef<PageData | undefined>

Edit this page

Comments