@ngrx/data 14.0.0-rc.0 → 14.0.2
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/esm2020/src/dispatchers/entity-dispatcher-factory.mjs +3 -1
- package/esm2020/src/selectors/entity-selectors$.mjs +3 -3
- package/fesm2015/ngrx-data.mjs +4 -2
- package/fesm2015/ngrx-data.mjs.map +1 -1
- package/fesm2020/ngrx-data.mjs +4 -2
- package/fesm2020/ngrx-data.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/ng-add/schema.json +4 -1
- package/schematics-core/utility/libs-version.js +1 -1
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/src/dispatchers/entity-dispatcher-factory.d.ts +2 -0
package/fesm2020/ngrx-data.mjs
CHANGED
|
@@ -1856,10 +1856,12 @@ class EntityDispatcherFactory {
|
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Function that returns the primary key for an entity `T`.
|
|
1858
1858
|
* Usually acquired from `EntityDefinition` metadata.
|
|
1859
|
+
* @param {IdSelector<T>} selectId
|
|
1859
1860
|
*/
|
|
1860
1861
|
selectId = defaultSelectId,
|
|
1861
1862
|
/** Defaults for options that influence dispatcher behavior such as whether
|
|
1862
1863
|
* `add()` is optimistic or pessimistic;
|
|
1864
|
+
* @param {Partial<EntityDispatcherDefaultOptions>} defaultOptions
|
|
1863
1865
|
*/
|
|
1864
1866
|
defaultOptions = {}) {
|
|
1865
1867
|
// merge w/ defaultOptions with injected defaults
|
|
@@ -2562,8 +2564,8 @@ class EntitySelectors$Factory {
|
|
|
2562
2564
|
selectors$[name$] = this.store.select(selectors[name]);
|
|
2563
2565
|
}
|
|
2564
2566
|
});
|
|
2565
|
-
selectors
|
|
2566
|
-
selectors
|
|
2567
|
+
selectors$['entityActions$'] = this.actions.pipe(ofEntityType(entityName));
|
|
2568
|
+
selectors$['errors$'] = this.entityActionErrors$.pipe(ofEntityType(entityName));
|
|
2567
2569
|
return selectors$;
|
|
2568
2570
|
}
|
|
2569
2571
|
}
|