Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Wiki: payload is never used #18

@freethejazz

Description

@freethejazz

In Tutorial 1, indexActions.increment takes an argument and includes that argument in the action object it returns, but the reducer ignores the payload field so it's never used. I think you may have meant to do this in the reducer:

    case 'incr':
      return { counter: state.counter + action.payload };

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