Skip to content

Connect runs after componentWillUnmount #351

Closed
@2j2e

Description

@2j2e

4.4.4 has a change that breaks my current solution.
I'm cleaning the state dispatching the action in the componentWillUnmount. It never caused Connect method invocation after unmount happend.

Next is how I'm using connect:

export default connect(state => ({
    state1: state.state1
    state2: state.state2
  }
}))(Component);

Tested on 4.4.1, 4.4.2, 4.4.3, 4.4.4

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