You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/utils.ts
+24-46Lines changed: 24 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ type FastMergeOptions = {
12
12
shouldRemoveNestedNulls?: boolean;
13
13
14
14
/** If true, it means that we are batching merge changes before applying them to the Onyx value, so we must use a special logic to handle these changes. */
15
-
isBatchingMergeChanges?: boolean;
15
+
shouldMarkRemovedObjects?: boolean;
16
16
17
17
/** If true, any nested objects that contains the internal "ONYX_INTERNALS__REPLACE_OBJECT_MARK" flag will be completely replaced instead of merged. */
18
18
shouldReplaceMarkedObjects?: boolean;
@@ -136,16 +136,33 @@ function mergeObject<TObject extends Record<string, unknown>>(
Copy file name to clipboardExpand all lines: tests/unit/fastMergeTest.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ describe('fastMerge', () => {
123
123
it('should add the "ONYX_INTERNALS__REPLACE_OBJECT_MARK" flag to the target object when its source is set to null and "isBatchingMergeChanges" is true',()=>{
0 commit comments