@ngxs/store 3.7.5-dev.master-c6d75d9 → 3.7.5-dev.master-056a44f
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/bundles/ngxs-store.umd.js +11 -4
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/src/actions-stream.js +10 -4
- package/esm5/src/actions-stream.js +13 -5
- package/fesm2015/ngxs-store.js +9 -4
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store.js +12 -5
- package/fesm5/ngxs-store.js.map +1 -1
- package/ngxs-store.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1808,15 +1808,21 @@
|
|
|
1808
1808
|
var Actions = /** @class */ (function (_super) {
|
|
1809
1809
|
__extends(Actions, _super);
|
|
1810
1810
|
function Actions(internalActions$, internalExecutionStrategy) {
|
|
1811
|
-
|
|
1811
|
+
var _this = this;
|
|
1812
|
+
/** @type {?} */
|
|
1813
|
+
var sharedInternalActions$ = internalActions$.pipe(leaveNgxs(internalExecutionStrategy),
|
|
1814
|
+
// The `InternalActions` subject emits outside of the Angular zone.
|
|
1815
|
+
// We have to re-enter the Angular zone for any incoming consumer.
|
|
1816
|
+
// The `share()` operator reduces the number of change detections.
|
|
1817
|
+
// This would call leave only once for any stream emission across all active subscribers.
|
|
1818
|
+
operators.share());
|
|
1819
|
+
_this = _super.call(this, (/**
|
|
1812
1820
|
* @param {?} observer
|
|
1813
1821
|
* @return {?}
|
|
1814
1822
|
*/
|
|
1815
1823
|
function (observer) {
|
|
1816
1824
|
/** @type {?} */
|
|
1817
|
-
var childSubscription =
|
|
1818
|
-
.pipe(leaveNgxs(internalExecutionStrategy))
|
|
1819
|
-
.subscribe({
|
|
1825
|
+
var childSubscription = sharedInternalActions$.subscribe({
|
|
1820
1826
|
next: (/**
|
|
1821
1827
|
* @param {?} ctx
|
|
1822
1828
|
* @return {?}
|
|
@@ -1834,6 +1840,7 @@
|
|
|
1834
1840
|
});
|
|
1835
1841
|
observer.add(childSubscription);
|
|
1836
1842
|
})) || this;
|
|
1843
|
+
return _this;
|
|
1837
1844
|
}
|
|
1838
1845
|
Actions.decorators = [
|
|
1839
1846
|
{ type: core.Injectable }
|