matrix-react-sdk
1be35a77 - Don't wait for setState to run onHaveRoom

Commit
8 years ago
Don't wait for setState to run onHaveRoom onHaveRoom sets some more state (among other things) so putting it in the setState callback so it could observe the new state caused us to have to re-render again unnecessarily. Just give it the new state as a parameter.
Author
Parents
Loading