Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(store): infer initial store state properly with metareducers #3102

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

timdeschryver
Copy link
Member

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?

Closes #3007

What is the new behavior?

Does this PR introduce a breaking change?

[x] Yes
[ ] No

This will probably be a breaking change because we're more strict.

BREAKING CHANGE:

`initialState` needs to match the interface of the store.

Other information

BREAKING CHANGE:

`initialState` needs to match the interface of the store.
@ngrxbot
Copy link
Collaborator

ngrxbot commented Jul 29, 2021

Preview docs changes for e045328 at https://previews.ngrx.io/pr3102-e0453285/

import { expecter } from 'ts-snippet';
import { compilerOptions } from './utils';

describe('StoreModule', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the label, I always forgot to do that 🤦‍♂️

@brandonroberts brandonroberts merged commit d003b85 into master Nov 2, 2021
@timdeschryver timdeschryver deleted the 3007 branch November 2, 2021 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StoreModule.forRoot and forFeature initialState typing not OK when providing metaReducers
4 participants