You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -569,15 +569,14 @@ Logging is **disabled by default** in v4. You must pass a `logger` to `createIns
569
569
570
570
### v4
571
571
572
-
The `isServerSide` prop is removed. Instead, configure the client for SSR use:
572
+
The `isServerSide` prop is removed. Instead, configure the client for SSR use. Pass the datafile for immediate readiness during server rendering, and set `disposable:true` on the server so the instance can be garbage collected without explicitly calling `close()`:
573
573
574
574
```tsx
575
575
'use client';
576
576
577
577
import { useState } from'react';
578
578
import {
579
579
createInstance,
580
-
createStaticProjectConfigManager,
581
580
createPollingProjectConfigManager,
582
581
createBatchEventProcessor,
583
582
OptimizelyProvider,
@@ -589,13 +588,11 @@ function ExampleProvider({ children, datafile }) {
0 commit comments