@ngxs/store 3.7.4-dev.master-5891501 → 3.7.4-dev.master-af4a196
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 +1 -17
- 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/decorators/select/select.js +1 -26
- package/esm2015/src/store.js +4 -4
- package/esm5/src/decorators/select/select.js +1 -17
- package/esm5/src/store.js +4 -4
- package/fesm2015/ngxs-store.js +3 -28
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store.js +3 -19
- package/fesm5/ngxs-store.js.map +1 -1
- package/ngxs-store.metadata.json +1 -1
- package/package.json +1 -1
- package/src/decorators/select/select.d.ts +0 -1
|
@@ -3683,7 +3683,7 @@
|
|
|
3683
3683
|
* because state is being changed actually within the `<root>` zone, see `InternalDispatcher#dispatchSingle`.
|
|
3684
3684
|
* All selects would use this stream, and it would call leave only once for any state change across all active selectors.
|
|
3685
3685
|
*/
|
|
3686
|
-
this._selectableStateStream = this._stateStream.pipe(leaveNgxs(this._internalExecutionStrategy), operators.shareReplay({ bufferSize: 1, refCount: true }));
|
|
3686
|
+
this._selectableStateStream = this._stateStream.pipe(operators.observeOn(rxjs.queueScheduler), leaveNgxs(this._internalExecutionStrategy), operators.shareReplay({ bufferSize: 1, refCount: true }));
|
|
3687
3687
|
this.initStateStream(initialStateValue);
|
|
3688
3688
|
}
|
|
3689
3689
|
/**
|
|
@@ -4448,7 +4448,6 @@
|
|
|
4448
4448
|
*/
|
|
4449
4449
|
/**
|
|
4450
4450
|
* Decorator for selecting a slice of state from the store.
|
|
4451
|
-
* @deprecated
|
|
4452
4451
|
* @template T
|
|
4453
4452
|
* @param {?=} rawSelector
|
|
4454
4453
|
* @param {...?} paths
|
|
@@ -4466,9 +4465,6 @@
|
|
|
4466
4465
|
*/
|
|
4467
4466
|
function (target, key) {
|
|
4468
4467
|
var _a;
|
|
4469
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
4470
|
-
warnSelectDeprecation();
|
|
4471
|
-
}
|
|
4472
4468
|
/** @type {?} */
|
|
4473
4469
|
var name = key.toString();
|
|
4474
4470
|
/** @type {?} */
|
|
@@ -4494,18 +4490,6 @@
|
|
|
4494
4490
|
_a));
|
|
4495
4491
|
});
|
|
4496
4492
|
}
|
|
4497
|
-
/** @type {?} */
|
|
4498
|
-
var selectDeprecatedHasBeenWarned = false;
|
|
4499
|
-
/**
|
|
4500
|
-
* @return {?}
|
|
4501
|
-
*/
|
|
4502
|
-
function warnSelectDeprecation() {
|
|
4503
|
-
if (selectDeprecatedHasBeenWarned) {
|
|
4504
|
-
return;
|
|
4505
|
-
}
|
|
4506
|
-
selectDeprecatedHasBeenWarned = true;
|
|
4507
|
-
console.warn("\n The @Select decorator is deprecated due to the following reasons:\n 1) lack of type-safety (compared to 'store.select()')\n 2) not compatible with server-side rendering because it uses a global 'Store' instance, which might change between renders\n 3) not compatible with module federation\n Consider replacing it the with store.select.\n If you're using VSCode you can replace @Select usages with the following RegExp.\n Search: @Select((.*))\n(.*): Observable<(.*)>;$\n Replace: $2 = this.store.select<$3>($1);\n ");
|
|
4508
|
-
}
|
|
4509
4493
|
|
|
4510
4494
|
/**
|
|
4511
4495
|
* @fileoverview added by tsickle
|