Skip to content

Commit

Permalink
fix: initial sync message
Browse files Browse the repository at this point in the history
  • Loading branch information
schummar committed Apr 5, 2024
1 parent 148200d commit 4180ae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/patches/patchMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ function subscribePatches<T>(

const { stopAt, runNow, ...subscribeOptions } = options ?? {};

const cancel = this.__patches.subscribe((p) => listener(...p), subscribeOptions);
const cancel = this.__patches.subscribe((p) => listener(...p), {
...subscribeOptions,
runNow: false,
});

if (runNow) {
listener(...diff(undefined, this.get(), options));
Expand Down

0 comments on commit 4180ae1

Please sign in to comment.