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: packages/react-sdk/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,10 +194,11 @@ The `<BucketProvider>` initializes the Bucket SDK, fetches features and starts l
194
194
}
195
195
```
196
196
197
-
- `timeoutMs`: Timeout in milliseconds when fetching features from the server,
198
-
- `staleWhileRevalidate`: If set to `true`, stale features will be returned while refetching features in the background,
199
-
- `expireTimeMs`: If set, features will be cached between page loads for this duration (in milliseconds),
197
+
- `timeoutMs`: Timeout in milliseconds when fetching features from the server.
198
+
- `staleWhileRevalidate`: If set to `true`, stale features will be returned while refetching features in the background.
199
+
- `expireTimeMs`: If set, features will be cached between page loads for this duration (in milliseconds).
200
200
- `staleTimeMs`: Maximum time (in milliseconds) that stale features will be returned if `staleWhileRevalidate` is true and new features cannot be fetched.
201
+
- `offline`: Provide this option when testing or in local development environments to avoid contacting Bucket servers.
201
202
- `loadingComponent` lets you specify an React component to be rendered instead of the children while the Bucket provider is initializing. If you want more control over loading screens, `useFeature()` returns `isLoading` which you can use to customize the loading experience:
0 commit comments