Skip to content

fix(store): improve consistency of memoized selector result when projection fails#2101

Merged
brandonroberts merged 1 commit into
ngrx:masterfrom
REPLicated:fix/consistent-memoization-if-error
Sep 7, 2019
Merged

fix(store): improve consistency of memoized selector result when projection fails#2101
brandonroberts merged 1 commit into
ngrx:masterfrom
REPLicated:fix/consistent-memoization-if-error

Conversation

@REPLicated

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

See description in #2100

What is the new behavior?

Closes #2100

See description in #2100

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@ngrxbot

ngrxbot commented Aug 31, 2019

Copy link
Copy Markdown
Collaborator

Preview docs changes for ce2c2b6 at https://previews.ngrx.io/pr2101-ce2c2b6/

Comment thread modules/store/spec/selector.spec.ts Outdated
Comment thread modules/store/spec/selector.spec.ts Outdated
Comment thread modules/store/spec/selector.spec.ts Outdated
Comment thread modules/store/spec/selector.spec.ts Outdated
…ection fails

A memoized selector projection now consistently fails after the first
evaluation, if it is evaluated again with the same state, instead of
returning that last successful evaluation result from a previous state.

Closes ngrx#2100
@REPLicated REPLicated force-pushed the fix/consistent-memoization-if-error branch from ce2c2b6 to 1991c7d Compare August 31, 2019 21:08
@ngrxbot

ngrxbot commented Aug 31, 2019

Copy link
Copy Markdown
Collaborator

Preview docs changes for 1991c7d at https://previews.ngrx.io/pr2101-1991c7d/

@brandonroberts brandonroberts merged commit c63941c into ngrx:master Sep 7, 2019
jordanpowell88 pushed a commit to jordanpowell88/platform that referenced this pull request Nov 14, 2019
…ection fails (ngrx#2101)

A memoized selector projection now consistently fails after the first
evaluation, if it is evaluated again with the same state, instead of
returning that last successful evaluation result from a previous state.

Closes ngrx#2100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memoized selectors: Inconsistent behavior when projection fails

4 participants