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
> [!NOTE] > `fallbackFlags` is deprecated. Prefer `flagsFallbackProvider` for startup fallback and outage recovery.
372
+
> [!NOTE]
373
+
>
374
+
> `fallbackFlags` is deprecated. Prefer `flagsFallbackProvider` for startup fallback and outage recovery.
352
375
> `flagsFallbackProvider` is not used in offline mode.
353
376
354
377
## Bootstrapping client-side applications
355
378
356
-
The `getFlagsForBootstrap()` method is designed for server-side rendering (SSR) scenarios where you need to pass flag data to client-side applications. This method returns raw flag data without wrapper functions, making it suitable for serialization and client-side hydration.
379
+
The `getFlagsForBootstrap()` method is useful whenever you need to pass flag data to another runtime or serialize it without wrapper functions. Server-side rendering (SSR) is a common example, but it is also useful for other bootstrapping and hydration flows.
357
380
358
381
```typescript
359
382
const client =newReflagClient();
@@ -556,7 +579,9 @@ current working directory.
556
579
|`flagsFallbackProvider`|`FlagsFallbackProvider`| Optional provider used to load and save raw flag definitions for fallback startup when the initial live fetch fails. Available only through the constructor. Ignored in offline mode. | - |
557
580
|`configFile`| string | Load this config file from disk. Default: `reflag.config.json`| REFLAG_CONFIG_FILE |
558
581
559
-
> [!NOTE] > `REFLAG_FLAGS_ENABLED` and `REFLAG_FLAGS_DISABLED` are comma separated lists of flags which will be enabled or disabled respectively.
582
+
> [!NOTE]
583
+
>
584
+
> `REFLAG_FLAGS_ENABLED` and `REFLAG_FLAGS_DISABLED` are comma separated lists of flags which will be enabled or disabled respectively.
0 commit comments