diff --git a/packages/vike-vue-pinia/integration/onBeforeRenderClient.ts b/packages/vike-vue-pinia/integration/onBeforeRenderClient.ts index 8c19dc8f..1be3feee 100644 --- a/packages/vike-vue-pinia/integration/onBeforeRenderClient.ts +++ b/packages/vike-vue-pinia/integration/onBeforeRenderClient.ts @@ -8,11 +8,10 @@ const onBeforeRenderClient: OnBeforeRenderClientSync = (pageContext): ReturnType type PageContext = Parameters[0] function hydratePinia(pageContext: PageContext) { - const { pinia, fromHtmlRenderer, isHydration } = pageContext - - if (!isHydration) { + if (!pageContext.isHydration) { return } + const { pinia, fromHtmlRenderer } = pageContext const { piniaInitialState } = fromHtmlRenderer