Skip to content

Commit

Permalink
pinia can never be undefined in dehydratePinia
Browse files Browse the repository at this point in the history
Signed-off-by: Chris-Robin Ennen <[email protected]>
  • Loading branch information
4350pChris authored and lourot committed Jan 15, 2024
1 parent cf09ccb commit 6c57b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vike-pinia/renderer/dehydratePinia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export { dehydratePinia }
type PiniaOnAfterRenderSSRApp = OnAfterRenderSSRApp<PiniaAdditionalSSRContext>

const dehydratePinia: PiniaOnAfterRenderSSRApp = ({ pinia }): ReturnType<PiniaOnAfterRenderSSRApp> => {
return { piniaInitialState: pinia.state.value }
return { piniaInitialState: pinia!.state.value }
}

0 comments on commit 6c57b16

Please sign in to comment.