@reactables/core 0.7.1-alpha.2 → 0.7.1-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 +2 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -151,11 +151,7 @@ var HubFactory = function (_a) {
|
|
|
151
151
|
}), operators.map(function (pair) { return pair[1]; }));
|
|
152
152
|
if (storeValue) {
|
|
153
153
|
var replaySubject_1 = new rxjs.ReplaySubject(1);
|
|
154
|
-
state
|
|
155
|
-
.pipe(operators.takeWhile(function () {
|
|
156
|
-
return !replaySubject_1.closed;
|
|
157
|
-
}))
|
|
158
|
-
.subscribe(function (state) { return replaySubject_1.next(state); });
|
|
154
|
+
state$.subscribe(function (state) { return replaySubject_1.next(state); });
|
|
159
155
|
return replaySubject_1;
|
|
160
156
|
}
|
|
161
157
|
return state$;
|
|
@@ -176,7 +172,7 @@ var HubFactory = function (_a) {
|
|
|
176
172
|
};
|
|
177
173
|
|
|
178
174
|
var RxBuilder = function (_a) {
|
|
179
|
-
var effects = _a.effects, _b = _a.sources, sources = _b === void 0 ? [] : _b, _c = _a.debug, debug = _c === void 0 ? false : _c, _d = _a.storeValue, storeValue = _d === void 0 ?
|
|
175
|
+
var effects = _a.effects, _b = _a.sources, sources = _b === void 0 ? [] : _b, _c = _a.debug, debug = _c === void 0 ? false : _c, _d = _a.storeValue, storeValue = _d === void 0 ? false : _d, sliceConfig = __rest(_a, ["effects", "sources", "debug", "storeValue"]);
|
|
180
176
|
var _e = createSlice(sliceConfig), reducer = _e.reducer, actions = _e.actions;
|
|
181
177
|
// Check sources and see if need to add effects
|
|
182
178
|
if (!Array.isArray(sources)) {
|
package/package.json
CHANGED