Skip to content

Commit 35693a9

Browse files
committed
chore(client): use generic param for useSSRContext
1 parent 7234a86 commit 35693a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/src/setupUpdateHead.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const setupUpdateHead = (): void => {
8181

8282
// ssr-only, extract page meta info to ssrContext
8383
if (__VUEPRESS_SSR__) {
84-
const ssrContext: VuepressSSRContext | undefined = useSSRContext()
84+
const ssrContext = useSSRContext<VuepressSSRContext>()
8585
if (ssrContext) {
8686
ssrContext.head = head.value
8787
ssrContext.lang = lang.value

0 commit comments

Comments
 (0)