Skip to content

Commit

Permalink
Add message parameter to transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
acurrieclark committed May 16, 2023
1 parent 1639069 commit 0196646
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/automerge-derived-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class AutomergeDerivedStore<T, U>
});
}

transaction(changes: () => void) {
this.#rootStore.transaction(changes);
transaction(changes: () => void, message?: string) {
this.#rootStore.transaction(changes, message);
}

get subscribe() {
Expand Down
4 changes: 2 additions & 2 deletions src/automerge-svelte-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export class AutomergeSvelteStore<T>
});
}

transaction(changes: () => void) {
this.#store?.transaction(changes);
transaction(changes: () => void, message?: string) {
this.#store?.transaction(changes, message);
}

undo() {
Expand Down

0 comments on commit 0196646

Please sign in to comment.