Skip to content

Commit e8801ac

Browse files
committed
update comment
1 parent 6fd2968 commit e8801ac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ type InitOptions = {
484484
/**
485485
* Array of collection keys whose backend returned data can be directly merged into
486486
* snapshot without selectively picking the existing keys in the existing snapshot data.
487+
* For e.g. if oldSnapshotData is {report_1: {name 'Fitsum'}} and BE update is {report_1: {name:'Fitsum2', nickName:'Fitse'}}
488+
* if it is fullyMergedSnapshotkey the `nickName` prop that didn't exist in the previous data will be merged
489+
* otherwise only existing prop will be picked from the BE update and merged (in this case only name).
487490
*/
488491
fullyMergedSnapshotKeys?: string[];
489492
};

0 commit comments

Comments
 (0)