vikejs / vike

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

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

Open brillout opened 3 weeks ago

brillout commented 3 weeks 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.