@flagship.io/react-sdk 3.0.3-alpha.4 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/FlagshipContext.js +2 -2
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/FlagshipContext.d.ts +1 -1
- package/package.json +8 -9
- package/CONTRIBUTING.md +0 -65
- package/LICENSE +0 -201
- package/dist/es/Flag.js +0 -36
- package/dist/es/FlagshipContext.js +0 -230
- package/dist/es/FlagshipHooks.js +0 -372
- package/dist/es/constants.js +0 -2
- package/dist/es/index.js +0 -3
- package/dist/es/utils.js +0 -77
|
@@ -54,7 +54,7 @@ export var FlagshipProvider = function FlagshipProvider(_ref) {
|
|
|
54
54
|
initialCampaigns = _ref.initialCampaigns,
|
|
55
55
|
initialModifications = _ref.initialModifications,
|
|
56
56
|
initialFlagsData = _ref.initialFlagsData,
|
|
57
|
-
|
|
57
|
+
fetchFlagsOnBucketingUpdated = _ref.fetchFlagsOnBucketingUpdated,
|
|
58
58
|
activateDeduplicationTime = _ref.activateDeduplicationTime,
|
|
59
59
|
hitDeduplicationTime = _ref.hitDeduplicationTime,
|
|
60
60
|
visitorCacheImplementation = _ref.visitorCacheImplementation,
|
|
@@ -89,7 +89,7 @@ export var FlagshipProvider = function FlagshipProvider(_ref) {
|
|
|
89
89
|
var stateRef = useRef();
|
|
90
90
|
stateRef.current = state;
|
|
91
91
|
useNonInitialEffect(function () {
|
|
92
|
-
if (
|
|
92
|
+
if (fetchFlagsOnBucketingUpdated) {
|
|
93
93
|
var _state$visitor;
|
|
94
94
|
|
|
95
95
|
(_state$visitor = state.visitor) === null || _state$visitor === void 0 ? void 0 : _state$visitor.fetchFlags();
|