Skip to content

Store change not immediately visible to component #1313

Closed
@htzhang2

Description

@htzhang2

This code used to work in react-redux v5.0.7:

  1. componentDidUpdate dispatch action, then call reducer to update store
  2. reducer updates store
  3. componentDidUpdate called again with new store value from selector

Step 3 no longer works in react-redux ^6.0.1:
selector not called

in 7.1.0, selector is called but the value not picked up by component props

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