Open Moe-Shoman opened 6 years ago
Context/commentary: we can see that 4 new user statuses were sent in 1 second, at 06:35:39. (And yes, we were hacking on LeapChat at 6:35am after staying up all night... and we're still going! About to call it a.. day? morning?)
Is this something you have observed in the logs of the running application or something that you have reproduced locally? Or both? For me it seems as though the initial username dialog always closes directly when you click the button.
@Spetastian Muhammad noticed the duplicated events in Redux Dev Tools, and so we reproduced the behavior on his machine, then checked his local database, and found the duplicate messages as seen above.
@Moe-Shoman @elimisteve Was the action being dispatched several times CHAT_SET_USERNAME
or CHAT_SET_USER_STATUS
?
Sorry for asking lot of questions here but im having troubles reproducing this locally. I need some more context.
@Spetastian All good, it was CHAT_SET_USER_STATUS
that was being dispatched multiple times.
@moeshoman @elimisteve OK, but it still seems like a potential issue since Its being dispatched multiple times in a short time span?
@Spetastian I think @Moe-Shoman was saying that it's "[a]ll good" (that you're asking questions) in response to "Sorry for asking lot of questions here".
@Spetastian It seems like there are instances where a user can click the "Set Username" button and it dispatches multiple user status actions for the same user. Maybe we can disable the Set Username button after the first action has been dispatched.