Skip to content

Commit

Permalink
Update nextjs-usage-app.md (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwootto authored Nov 6, 2024
1 parent 5d6d6fb commit 0d35334
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/sdk/client-side-sdks/nextjs/nextjs-usage-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,15 @@ trigger your build process.
## Advanced
### Non-Blocking Initialization
If you wish to render your page without waiting for the DevCycle configuration to be retrieved, you can use the
If you wish to render your page without waiting for the DevCycle configuration to be retrieved, or your "user getter" to resolve, you can use the
`enableStreaming` option. Doing so enables the following behaviour:
- the `DevCycleClientsideProvider` will not block rendering of the rest of the server component tree and will trigger the
nearest `Suspense` boundary while the config is being retrieved.
- the `DevCycleClientsideProvider` will not block rendering of the rest of the component tree and will trigger the
nearest `Suspense` boundary while the config is being retrieved or your user getter is being evaluated.
- any calls to `getVariableValue` in server components or `useVariableValue` in client components
will trigger the nearest `Suspense` boundary while the config being retrieved. The component will then stream to
will trigger the nearest `Suspense` boundary while the config and user are being retrieved. The component will then stream to
the client once the config is retrieved.
Note: The DevCycle initialization process is normally very fast (less than 50ms, less than 1ms when cached).
Only use this option if your application is very performance sensitive.
This option is recommended if your user retrieval operation is slow enough to delay the page response. Retrieving the DevCycle configuration is normally very fast (less than 50ms) and is unlikely to contribute to delaying the response.
### Conditional Deferred Rendering (renderIfEnabled)
When a user makes a request for your application, they are sent the client bundle containing source code for the whole
Expand Down

0 comments on commit 0d35334

Please sign in to comment.