jwohlfert23 / react-native-tag-input

A simple React Native component that creates an input for tags, emails, etc.
MIT License
232 stars 104 forks source link

Warning when updating values #5

Closed henriquesantiago closed 7 years ago

henriquesantiago commented 8 years ago

When I try to update the values (with the onChange handler), I get this warning and no visual changes to the input component:

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 component.

I do get an array with the new elements, though. The issue arises when I try to execute any setState operation inside the function called by onChange.

Also, I tried to see if the component really unmounted with the componentWillUnmount method, but it doesn't get executed at all. Any suggestions as to why I'm getting this warning?

jwohlfert23 commented 8 years ago

Can you post your code? Happy to debug with you.