Skip to content

Commit 1bc01a2

Browse files
committed
Deep merge status updates.
1 parent 71b8175 commit 1bc01a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/powersync-sdk-web/src/worker/sync/SharedSyncImplementation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export class SharedSyncImplementation extends BaseObserver<SharedSyncImplementat
3939
updateState(status: SharedSyncStatus) {
4040
this.status = {
4141
...this.status,
42-
...status
42+
...status,
43+
dataFlow: {
44+
...this.status.dataFlow,
45+
...status.dataFlow
46+
}
4347
};
4448
this.iterateListeners((cb) => cb.statusChanged?.(status));
4549
}

0 commit comments

Comments
 (0)