-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to remove possible races when switching account in message list / chatstore #3675
Closed
Tracked by
#3671
Labels
bug
Something isn't working
Comments
The current idea is to remove the global chat store and move to a local chat store that lives inside of the react tree Where is it currently used
#mostly_inside_msg_list, #mostly_inside_react_chat: could be probably solved with a context comments
|
Chat Store:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the chatstore / message list store depends too much on the global selected account id (
window.__selectedAccountId
).If there is an action running and you switch accounts it might try to complete the action with the other account. so this needs a refactoring I think making sure those stores live inside of the react tree and are not reused globally if possible.
But this is too much to do inside of this pr.
Originally posted by @Simon-Laux in #3621 (comment)
The text was updated successfully, but these errors were encountered: