Skip to content

Question: Example-app, why extend the root state? #852

@bhaidar

Description

@bhaidar

Hello,
In this class, you extend the root State by adding additional state.
https://github.com/ngrx/platform/blob/master/example-app/app/auth/reducers/index.ts

export interface State extends fromRoot.State {
   auth: AuthState;
 }

why are you extending the fromRoot.State into a new interface State? Where do you use this new State interface? Are you adding a new state into the root State? Where do you use the states from the root State? Just in core module or also in feature modules?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions