@reactables/core 1.3.0-alpha.1 → 1.3.0-alpha.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/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -296,12 +296,11 @@ var storeValue = function (reactable) {
|
|
|
296
296
|
var state$ = reactable[0], actions = reactable[1], actions$ = reactable[2];
|
|
297
297
|
var subscription = state$.subscribe(function (state) { return replaySubject$.next(state); });
|
|
298
298
|
var destroy = function () {
|
|
299
|
-
|
|
300
|
-
// If destroy action already exists (i.e from a web worker), invoke it
|
|
301
|
-
(_a = actions.destroy) === null || _a === void 0 ? void 0 : _a.call(actions);
|
|
299
|
+
console.log('unsubscribe store value');
|
|
302
300
|
subscription.unsubscribe();
|
|
303
301
|
};
|
|
304
|
-
|
|
302
|
+
actions.destroy = destroy;
|
|
303
|
+
return [replaySubject$, actions, actions$];
|
|
305
304
|
};
|
|
306
305
|
|
|
307
306
|
var combine = function (sourceReactables) {
|
package/package.json
CHANGED