vikejs / vike

🔨 Flexible, lean, community-driven, dependable, fast Vite-based frontend framework.
https://vike.dev
MIT License
4.39k stars 352 forks source link

`passToClient: (string | { navigation: boolean, value: string })[]` #1842

Open brillout opened 2 months ago

brillout commented 2 months ago

Description

See https://github.com/vikejs/vike/discussions/1822#discussioncomment-10496668.

This can be useful for pageContext.user which usually doesn't need to be fetched again, in order to avoid a .pageContext.json request upon client-side navigation.