Fix some races due to promises completing after we've switched rooms#84
Conversation
Add a few isMounted() checks to promise handlers so that we don't end up throwing NPEs.
There was a problem hiding this comment.
apparently. Evidently this was super-well-tested :(
|
LGTM aside from It is worth noting that in their infinite wisdom, Facebook are planning on deprecating This means that in a later version of React, this code will be broken. We can either pre-emptively catch this (and have our own |
|
ugh. Tiresome. |
|
@kegsay: ptal |
|
LGTM |
Fix some races due to promises completing after we've switched rooms
…matrix-react-sdk-strings Update from Weblate.
Add a few isMounted() checks to promise handlers so that we don't end up
throwing NPEs.
This should fix element-hq/element-web#589.