It is possible that we need an updated state when processing the next operation, so we need to make sure that the new state is propagated.
https://linear.app/comm/issue/ENG-9470/mitigate-risks-of-effects-running-on-outdated-data
Differential D13572
[lib] Create a queue and use it to process queued operations tomek on Oct 2 2024, 6:05 AM. Authored by Tags None Referenced Files
Subscribers None
Details It is possible that we need an updated state when processing the next operation, so we need to make sure that the new state is propagated. https://linear.app/comm/issue/ENG-9470/mitigate-risks-of-effects-running-on-outdated-data Tested that this diff doesn't introduce a regression:
Each of these produces the correct state and clears the Redux queue. Also tested that we have a bug that this diff fixes. Created three operations that were processed in the following order:
Before this diff, there were robotexts displayed for each of these, but the thread name wasn't changed. After this diff both thread name and description are updated.
Diff Detail
Event TimelineComment Actions There seem to be new risks from this approach, It's unclear to me what issue is being mitigated here. See my message from chat:
Comment Actions Replied on the chat, but also copying here for the documenting purposes
Comment Actions Makes sense to me! Before landing, please:
|