Removed invariant, which was causing the error, and modified measureMessages method so that it can handle the case where messages is null.
Details
Details
Checked logging out while there was opened the chat window, now it doesn't throw an error.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
The summary can be improved a bit
checked null values in measureMessages method.
This can be replaced by more correct description, e.g.
modified measureMessages method so that it can handle the case where messages is null
native/chat/message-list-container.react.js | ||
---|---|---|
93–117 ↗ | (On Diff #22275) | It seems like it should be possible to just avoid calling measureMessages when messageListData is null. We even have some code to handle !newListData && oldListData case. So it seems like the current approach is ok. |