Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

how to redux hooks update on an unmounted component #128

Open
specialgirlgotoheaven opened this issue Oct 11, 2021 · 1 comment
Open

how to redux hooks update on an unmounted component #128

specialgirlgotoheaven opened this issue Oct 11, 2021 · 1 comment

Comments

@specialgirlgotoheaven
Copy link

image
when I use dispatch,it will error like above picture。
how to redux hooks update on an unmounted component

@jaketodaro
Copy link

This react error shows when an unmounted component attempts to update state, which is not allowed. Make sure that whatever code is calling dispatch does not run after the component is unmounted. Take a look at https://www.debuggr.io/react-update-unmounted-component/ for tips on debugging these issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants