Skip to content

Commit

Permalink
chore(client): use generic param for useSSRContext
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Sep 11, 2024
1 parent 7234a86 commit 35693a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/setupUpdateHead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const setupUpdateHead = (): void => {

// ssr-only, extract page meta info to ssrContext
if (__VUEPRESS_SSR__) {
const ssrContext: VuepressSSRContext | undefined = useSSRContext()
const ssrContext = useSSRContext<VuepressSSRContext>()
if (ssrContext) {
ssrContext.head = head.value
ssrContext.lang = lang.value
Expand Down

0 comments on commit 35693a9

Please sign in to comment.