Streaming Server Rendering
Loading...
In this example app, feature flag definitions are cached for 60 seconds. For faster updates, you can configure an SDK Webhook in GrowthBook to hit the following route handler: POST /revalidate
In this example app, feature flag definitions are cached for 60 seconds. For faster updates, you can configure an SDK Webhook in GrowthBook to hit the following route handler: POST /revalidate
This component is streamed inside a server component (with an artificial 2s delay).
The code implemented here will automatically leverage Partial Prerendering (PPR) in newer versions of Next.js that have it enabled.