Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix storeWillMount cleanup effect #66

@alexdln

Description

@alexdln

Currently, due to the logic built in, the storeWillMount cleanup is called once between calls (as per React strict mode) and a second time before the actual unmount. But the actual unmount was executed during the useEffect cleanup and was also executed twice in React strict mode, so the second [storeWillMount cleanup] call occurred between useEffect calls, breaking the logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions