Create the store. By default, it should contain an empty array.
https://linear.app/comm/issue/ENG-7096/add-a-new-field-in-redux-where-ops-are-stored
Paths
| Differential D11259 Authored by tomek on Mar 6 2024, 9:54 AM.
Tags None Referenced Files
Subscribers
Details Summary Create the store. By default, it should contain an empty array. https://linear.app/comm/issue/ENG-7096/add-a-new-field-in-redux-where-ops-are-stored Test Plan Inspect Redux on web and native and check if the store is present. Also close and reopen the app to make sure that there are no inconsistencies.
Diff Detail
Event TimelineHerald added a subscriber: ashoat. · View Herald TranscriptMar 6 2024, 9:54 AM2024-03-06 09:54:46 (UTC-8) Harbormaster completed remote builds in B27364: Diff 37895.Mar 6 2024, 10:51 AM2024-03-06 10:51:56 (UTC-8) Comment Actions
In the current design the flow should be like this:
If we want to persist this, we could end up in a scenario where we open the app, and we have:
This requires implementing some additional things like remembering messageIDs, confirming not from the socket level but from the component responsible for processing etc.. With the current approach we will just start the flow again, it could be improved in the future but I think for now it might not be worth it.
This revision is now accepted and ready to land.Mar 11 2024, 4:01 AM2024-03-11 04:01:25 (UTC-7) Harbormaster completed remote builds in B27637: Diff 38258.Mar 21 2024, 5:12 AM2024-03-21 05:12:09 (UTC-7) Harbormaster completed remote builds in B27643: Diff 38264.Mar 21 2024, 8:18 AM2024-03-21 08:18:14 (UTC-7) Harbormaster completed remote builds in B27699: Diff 38356.Mar 27 2024, 4:52 AM2024-03-27 04:52:01 (UTC-7) tomek edited the summary of this revision. (Show Details)Mar 27 2024, 7:27 AM2024-03-27 07:27:25 (UTC-7) Harbormaster completed remote builds in B27702: Diff 38365.Mar 27 2024, 7:45 AM2024-03-27 07:45:51 (UTC-7) Harbormaster completed remote builds in B27766: Diff 38446.Mar 28 2024, 7:56 AM2024-03-28 07:56:18 (UTC-7) Closed by commit rCOMMa6d8818e3171: [lib] Create a redux store where ops will be stored (authored by tomek). · Explain WhyMar 28 2024, 8:11 AM2024-03-28 08:11:28 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38258 lib/types/db-ops-types.js
lib/types/redux-types.js
lib/utils/reducers-utils.test.js
native/redux/default-state.js
native/redux/persist.js
native/redux/state-types.js
web/redux/default-state.js
|