@marcinwasowicz noticed an issue where threadStoreLoaded was getting set to true before messageStoreLoaded, despite the two set calls being right next to each other.
It seems like React is calling the effect twice... first with just threadStoreLoaded set to true, and then with both set to true.
The result of this is that the effect is being run twice instead of once. This diff should make it so it only gets called once.