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
messagesusingsetState()won’t work as well? How can I delete a message? I triedsetState()to modifymessagesarray but it didn’t work.@b8ne Your
selectorshould always return a new array when something changes.