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
{{ message }}
Repository navigation
Commit 64bf707
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/node-sdk/README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,13 +172,15 @@ Declarations are checked at compile time only. See the [Reflag CLI](https://docs
172
172
173
173
## Bootstrap the browser
174
174
175
-
To render flags in the browser without waiting for a network request, evaluate them on the server and pass the result to the Browser, React or Vue SDK's bootstrap option:
175
+
**Requires a Browser, React or Vue SDK that supports the v2 bootstrap protocol.** V1 consumers expect a different flag shape and cannot use this result.
176
+
177
+
With a compatible v2 consumer, evaluate flags on the server to render them in the browser without waiting for a network request:
Pass the whole object, serialized with your framework's usual mechanism. Leave secrets and server-only attributes out of the context you bootstrap, because the browser can read it.
183
+
Pass the whole object to the compatible consumer's bootstrap option, serialized with your framework's usual mechanism. Do not pass it to a v1 SDK. Leave secrets and server-only attributes out of the context you bootstrap, because the browser can read it.
182
184
183
185
## Remote evaluation
184
186
@@ -237,7 +239,14 @@ Options can be set in the constructor, through environment variables, or in `ref
237
239
|`batchOptions`|| Event batching: `maxSize`, `intervalMs` and `flushOnExit`|
238
240
|`httpClient`|| Custom HTTP client |
239
241
240
-
To stop sending checks and events for a context, include `enableTracking: false` in it.
242
+
To disable checks, automatic user/company updates and bound-client usage tracking for a context, pass `enableTracking: false` to reads or `bindClient()`, not to the constructor:
0 commit comments