Skip to content

[FIX] Add cleanup in useEffect#26

Open
olros wants to merge 1 commit intoleonardokl:masterfrom
olros:patch-1
Open

[FIX] Add cleanup in useEffect#26
olros wants to merge 1 commit intoleonardokl:masterfrom
olros:patch-1

Conversation

@olros
Copy link
Copy Markdown

@olros olros commented Jun 17, 2021

Don't dispatch to reducer when the hook has been unmounted.

fixes #20

Don't dispatch to reducer when the hook has been unmounted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't perform a React state update on an unmounted component

1 participant