HomePhabricator
Diffusion Comm 41680772eef6

[native] Create a function that processes all the ops

Description

[native] Create a function that processes all the ops

Summary:
Create a single vector where all the ops are stored and process them in a single transaction.
This function isn't ideal, but I have discovered a lot of ways of how it can't be implemented. I checked a lot of ideas from Internet, but I haven't found anything that compiles (mainly due to a fact that we're storing a vector of unique pointers - but avoiding the pointers also requires a lot of work).

https://linear.app/comm/issue/ENG-6004/wrap-all-store-operations-from-one-action-in-transaction

Depends on D11902

Test Plan: Modified redux-utils and used this function to process the drafts operations. Then created a draft, closed and reopened the app and checked if the modified draft was present.

Reviewers: kamil, marcin, varun

Reviewed By: marcin

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D11921

Details

Provenance
tomekAuthored on May 7 2024, 7:55 AM
Reviewer
marcin
Differential Revision
D11921: [native] Create a function that processes all the ops
Parents
rCOMM4324e85e55a4: [native] Create a single base class for all the ops
Branches
Unknown
Tags
Unknown