Next.js Discord

Discord Forum

ppr v isr for server side wrappers

Unanswered
Japanese pilchard posted this in #help-forum
Open in Discord
Japanese pilchardOP
So I have a route which fetches all data and passes to a child which is client side.

I only want the outer server component in the page.tsx marked as statically built to be build statically at build time.

The client component relies on dynamic user data so it needs to continue to be ran. Do I need to do PPR for this with a suspense boundary? I thought ppr was just for server boundaries not client and server. Or would I do ISR with a suspense boundary around the client component?

Or should I just use unstable_cache or something to just cache the data? Not sure this seems unanswered on any forum to my surprise the distinction btwn ISR PPR and unstable_cache+dynamic route in this use case where 90% of the html can be static (user invariant) but 10% is user dependent and has an initial load before that client fetched response comes back

0 Replies