You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? Please provide steps to re-produce your problem.
Unmounted the Upload.Dragger component when a customRequest event was triggered
What happen?
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Upload component.
The text was updated successfully, but these errors were encountered:
mdluo
changed the title
[Bug] Upload.Dragger called setState() on when it was unmounted and got a React Warning
[Bug] Upload.Dragger called setState() when it was unmounted and got a React Warning
Mar 3, 2017
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 2, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment
What did you do? Please provide steps to re-produce your problem.
Unmounted the
Upload.Dragger
component when acustomRequest
event was triggeredWhat happen?
Where the problem is
https://github.com/ant-design/ant-design/blob/master/components/upload/index.tsx#L217
Possible solution
https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html
The text was updated successfully, but these errors were encountered: