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

update(doc): solution for Feature combineReducers and AOT #1113

Merged
merged 4 commits into from
Jun 13, 2018
Merged

update(doc): solution for Feature combineReducers and AOT #1113

merged 4 commits into from
Jun 13, 2018

Conversation

ThomasBurleson
Copy link
Contributor

The angular compiler needs statically analyzes code during AOT. As such you can’t call functions like combineReducers() when defining metadata in the NgModule.

Refs #306

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.971% when pulling 12054f8 on ThomasBurleson:patch-1 into 550b67e on ngrx:master.

@coveralls
Copy link

coveralls commented Jun 7, 2018

Coverage Status

Coverage remained the same at 87.971% when pulling 221485a on ThomasBurleson:patch-1 into 550b67e on ngrx:master.

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Some typos

configuration option to provide an array of meta-reducers that are composed from right to left.
@ngrx/store composes your map of reducers into a single reducer.

> Developers can think of metaReducers as hooks into the action->reducer pipeline. MetaReducers allow develoeprs to pre-process actions actions before *normal* reducers are invoked.
Copy link
Member

Choose a reason for hiding this comment

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

allow developers to pre-process actions actions before

and then the following will work with AOT:

```ts
import { reducerA } from './+state/a.reducer';
Copy link
Member

Choose a reason for hiding this comment

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

import { reducerA } from './state/a.reducer';
(without the + sign)

@brandonroberts
Copy link
Member

@tdeschryver if you want to just make those couple of edits here we can land this.

@timdeschryver
Copy link
Member

@brandonroberts Done!

@brandonroberts brandonroberts merged commit fb9b172 into ngrx:master Jun 13, 2018
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.

4 participants