Skip to content

Commit 4cbc9ac

Browse files
author
Jon Rista
committed
fix: defficiency in getEntityState for optional loading operators
* Update optional loading support utils to look in feature state if entity has feature affinity * Updated optional loading factories and actions to support optional props where possible > Moved optional loading utilities to their own code file NAE-208
1 parent 72e7d22 commit 4cbc9ac

18 files changed

+546
-69
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<a name="0.7.2"></a>
2+
3+
# [0.7.2](https://github.com/briebug/ngrx-auto-entity/compare/0.7.1...0.7.2) Beta (2022-01-24)
4+
5+
Resolved a discrepancy in optional loading, where if the entity were a part of feature state,
6+
and its state properties were nested underneath a feature state property on root state, the
7+
correct entity state property could not be found.
8+
9+
### Bug Fixes
10+
11+
- **operators** Update getEntityState function to check if entity has feature affinity, and access from the appropriate feature if necessary.
12+
- **factories** Updated optional loading factories to support optional props where possible
13+
- **actions** Updated optional loading actions to support optional props where possible
14+
15+
### Internal
16+
17+
- **operators** Moved operator support utilities to their own code file
18+
119
<a name="0.7.1"></a>
220

321
# [0.7.1](https://github.com/briebug/ngrx-auto-entity/compare/0.7.0...0.7.1) Beta (2021-11-05)

projects/ngrx-auto-entity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.7.1",
2+
"version": "0.7.2",
33
"name": "@briebug/ngrx-auto-entity",
44
"description": "Automatic Entity State and Facades for NgRx. Simplifying reactive state!",
55
"license": "SEE LICENSE IN LICENSE.md",

projects/ngrx-auto-entity/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export {
1919
* Injection Tokens
2020
*/
2121

22-
export { NGRX_AUTO_ENTITY_APP_STORE } from './lib/effects/if-necessary-operators';
23-
2422
/*
2523
* Common models and types referenced throughout Auto-Entity
2624
*/
@@ -187,3 +185,4 @@ export {
187185
UpsertEffect,
188186
UpsertManyEffect
189187
} from './lib/effects/effects-cud-discrete';
188+
export { NGRX_AUTO_ENTITY_APP_STORE } from './lib/effects/if-necessary-operator-utils';

0 commit comments

Comments
 (0)