react-native-gifted-chat: When props are updated the UI doesn't reflect the update
If you have this.props.messages
and messages gets updated after an action is triggered the ui doesn’t reflect the changes but render is called again on the component with the new set of props.
Is their something i’m missing for receiving new props or is this a 🐛
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (4 by maintainers)
so update
messages
usingsetState()
won’t work as well? How can I delete a message? I triedsetState()
to modifymessages
array but it didn’t work.@b8ne Your
selector
should always return a new array when something changes.