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: src/SplitFactoryProvider.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ import { DEFAULT_UPDATE_OPTIONS } from './useSplitClient';
12
12
* since they access the Split Context and its elements (factory, clients, etc).
13
13
*
14
14
* NOTE: Either pass a factory instance or a config object. If both are passed, the config object will be ignored.
15
-
* Pass a reference to the config or factory object rather than a new instance on each render, to avoid unnecessary props changes and SDK reinitializations.
15
+
* Pass the same reference to the config or factory object rather than a new instance on each render, to avoid unnecessary props changes and SDK reinitializations.
exportconstWARN_SF_CONFIG_AND_FACTORY: string='[WARN] Both a config and factory props were provided to SplitFactoryProvider. Config prop will be ignored.';
18
18
19
-
// @TODO remove with SplitFactory component in next major version
19
+
// @TODO remove with SplitFactory component in next major version. SplitFactoryProvider can accept no props and eventually only an initialState
20
20
exportconstERROR_SF_NO_CONFIG_AND_FACTORY: string='[ERROR] SplitFactory must receive either a Split config or a Split factory as props.';
21
21
22
22
exportconstEXCEPTION_NO_REACT_OR_CREATECONTEXT: string='React library is not available or its version is not supported. Check that it is properly installed or imported. Split SDK requires version 16.3.0+ of React.';
0 commit comments