diff --git a/examples/full/components/Link.vue b/examples/full/components/Link.vue index 3cd6d6e0..2ff37518 100644 --- a/examples/full/components/Link.vue +++ b/examples/full/components/Link.vue @@ -19,7 +19,7 @@ import { usePageContext } from 'vike-vue/usePageContext' const pageContext = usePageContext() const { href } = useAttrs() as { href: string } const isActive = computed(() => { - const { urlPathname } = pageContext + const { urlPathname } = pageContext.value return href === '/' ? urlPathname === href : urlPathname.startsWith(href) }) diff --git a/examples/full/pages/+Head.vue b/examples/full/pages/+Head.vue index e68a6f42..609e61de 100644 --- a/examples/full/pages/+Head.vue +++ b/examples/full/pages/+Head.vue @@ -23,5 +23,5 @@ function getCanonicalUrl(pageContext: PageContext): null | string { return new URL(pageContext.urlPathname, pageContext.config.baseCanonicalUrl).toString() } -const canonicalUrl = getCanonicalUrl(pageContext) +const canonicalUrl = getCanonicalUrl(pageContext.value) diff --git a/examples/full/pages/_error/+Page.vue b/examples/full/pages/_error/+Page.vue index a662caf1..89aaa39c 100644 --- a/examples/full/pages/_error/+Page.vue +++ b/examples/full/pages/_error/+Page.vue @@ -8,7 +8,7 @@ import { usePageContext } from 'vike-vue/usePageContext' const pageContext = usePageContext() -let { is404, abortReason } = pageContext +let { is404, abortReason } = pageContext.value if (!abortReason) { abortReason = is404 ? 'Page not found.' : 'Something went wrong.' } diff --git a/examples/full/pages/star-wars/index/+Page.vue b/examples/full/pages/star-wars/index/+Page.vue index 0a8730fd..8d413fdf 100644 --- a/examples/full/pages/star-wars/index/+Page.vue +++ b/examples/full/pages/star-wars/index/+Page.vue @@ -1,7 +1,7 @@