@@ -102,7 +102,7 @@ function MultipleFeatureFlags() {
102102By default, the React Client SDK will block rendering of children until the initial load of Feature Flags has completed.
103103This ensures that children have immediate access to all Flags when they are rendered. However, in some circumstances it
104104may be beneficial to immediately render the application and handle display of loading on a component-by-component basis.
105- The React Client SDK's asynchronous mode allows this by passing the optional ` async ` prop when connecting with the
105+ The React Client SDK's asynchronous mode allows this by passing the optional ` asyncMode ` prop when connecting with the
106106` FFContextProvider ` .
107107
108108
@@ -112,7 +112,7 @@ It includes the flag, variation, and whether the SDK was still initializing (`lo
112112
113113This can happen when:
114114
115- 1 . Using ` async ` mode without ` cache ` or ` initialEvaluations ` and where the SDK is still initializing.
115+ 1 . Using ` asyncMode ` mode without ` cache ` or ` initialEvaluations ` and where the SDK is still initializing.
1161162 . The flag identifier is incorrect (e.g., due to a typo).
1171173 . The wrong API key is being used, and the expected flags are not available for that project.
118118
@@ -232,7 +232,7 @@ using the `useFeatureFlag` and `useFeatureFlags` hooks and `withFeatureFlags`
232232your Harness Feature Flags account, and the ` target ` . You can think of a ` target ` as a user.
233233
234234The ` FFContextProvider ` component also accepts an ` options ` object, a ` fallback ` component, an array
235- of ` initialEvaluations ` , an ` onError ` handler, and can be placed in [ Async mode] ( #Async-mode ) using the ` async ` prop.
235+ of ` initialEvaluations ` , an ` onError ` handler, and can be placed in [ Async mode] ( #Async-mode ) using the ` asyncMode ` prop.
236236The ` fallback ` component will be displayed while the SDK is connecting and fetching your flags. The ` initialEvaluations `
237237prop allows you pass an array of evaluations to use immediately as the SDK is authenticating and fetching flags.
238238The ` onError ` prop allows you to pass an event handler which will be called whenever a network error occurs.
@@ -245,7 +245,7 @@ import { FFContextProvider } from '@harnessio/ff-react-client-sdk'
245245function MyComponent() {
246246 return (
247247 < FFContextProvider
248- async = {false } // OPTIONAL: whether or not to use async mode
248+ asyncMode = {false } // OPTIONAL: whether or not to use async mode
249249 apiKey = " YOUR_API_KEY" // your SDK API key
250250 target = {{
251251 identifier : ' targetId' , // unique ID of the Target
0 commit comments