@screeb/sdk-react 0.2.3 → 0.2.4
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/cjs/index.cjs +3 -2
- package/dist/es/index.mjs +3 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -190,7 +190,7 @@ var ScreebProvider = function (_a) {
|
|
|
190
190
|
case 2: return [2 /*return*/];
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
}); }, [isLoaded.current]);
|
|
193
|
+
}); }, [isLoaded.current, isInitialized]);
|
|
194
194
|
var debug = React__namespace.useCallback(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
195
195
|
switch (_a.label) {
|
|
196
196
|
case 0: return [4 /*yield*/, ensureScreeb("debug", function () { return Screeb__namespace.debug(); })];
|
|
@@ -266,6 +266,7 @@ var ScreebProvider = function (_a) {
|
|
|
266
266
|
if (!isInitialized) {
|
|
267
267
|
Screeb__namespace.init(websiteId, userId, userProperties, hooks, language);
|
|
268
268
|
isInitialized = true;
|
|
269
|
+
isLoaded.current = true;
|
|
269
270
|
}
|
|
270
271
|
}, true)];
|
|
271
272
|
case 1:
|
|
@@ -395,4 +396,4 @@ var useScreeb = function () {
|
|
|
395
396
|
|
|
396
397
|
exports.ScreebProvider = ScreebProvider;
|
|
397
398
|
exports.useScreeb = useScreeb;
|
|
398
|
-
CONSTANTS.version = '0.2.
|
|
399
|
+
CONSTANTS.version = '0.2.4'
|
package/dist/es/index.mjs
CHANGED
|
@@ -168,7 +168,7 @@ var ScreebProvider = function (_a) {
|
|
|
168
168
|
case 2: return [2 /*return*/];
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
|
-
}); }, [isLoaded.current]);
|
|
171
|
+
}); }, [isLoaded.current, isInitialized]);
|
|
172
172
|
var debug = React.useCallback(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
173
173
|
switch (_a.label) {
|
|
174
174
|
case 0: return [4 /*yield*/, ensureScreeb("debug", function () { return Screeb.debug(); })];
|
|
@@ -244,6 +244,7 @@ var ScreebProvider = function (_a) {
|
|
|
244
244
|
if (!isInitialized) {
|
|
245
245
|
Screeb.init(websiteId, userId, userProperties, hooks, language);
|
|
246
246
|
isInitialized = true;
|
|
247
|
+
isLoaded.current = true;
|
|
247
248
|
}
|
|
248
249
|
}, true)];
|
|
249
250
|
case 1:
|
|
@@ -372,4 +373,4 @@ var useScreeb = function () {
|
|
|
372
373
|
};
|
|
373
374
|
|
|
374
375
|
export { ScreebProvider, useScreeb };
|
|
375
|
-
CONSTANTS.version = '0.2.
|
|
376
|
+
CONSTANTS.version = '0.2.4'
|