Skip to content

[ngrx] Redux basics #8

@stevermeister

Description

@stevermeister
  • recreate the concept

    • state
    • reducer
    • dispatch
    • Store
  • middleware

Store {
  state

  private reducer(state, action) {
    switch(action) {

        return state.copy();

    }
  }

  dispatch(action) {
     return reducer(state, action)
  }
}

action: {type: string, payload: any}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions