-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoComplete] setState called even when component unmounted #4867
Comments
+1 |
I have a workaround.If we add a delay of 100ms it works fine. |
@dhruvdatt I have noticed the same thing when playing with the AutoComplete. I haven't investigated much. Looks like one of the |
I'm seeing the same issue when I navigate from a screen using the onChange method on a DropDown menu |
This problem comes from Popover, some race condition problem. Maybe it's good idea to not maintains stuffs like that and focus on main the thing UI and let third party libs maintain positioning and visibility. I found react-overlays super useful |
Running into this issue as well. Related: https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html |
Closed by #4783 |
[AutoComplete]:SetState Called even when component unmounted
on handleNewRequest mounted new component
Versions
I have autocomplete of which handleNewRequest event I am mounting a new component.I get a error that its called setState for searchText.How do I Prevent this.
I have tried to call setState on componentWillUnmount by taking the searchText in my state.Still not solved
Images & references
It has something to do with timerTouchTapCloseId.
it calls
which it cannot find once unmounted
The text was updated successfully, but these errors were encountered: