Skip to content

Commit ec7c110

Browse files
TyMickRavenColEvol
authored andcommitted
Add HistoryEditor.withNewBatch to docs (ianstormtaylor#5769)
1 parent c89468c commit ec7c110

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/libraries/slate-history/history-editor.md

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ Undo to the previous saved state.
4444
Apply a series of changes inside a synchronous `fn`, These operations will
4545
be merged into the previous history.
4646

47+
#### `HistoryEditor.withNewBatch(editor: HistoryEditor, fn: () => void): void`
48+
49+
Apply a series of changes inside a synchronous `fn`, ensuring that the first
50+
operation starts a new batch in the history. Subsequent operations will be
51+
merged as usual.
52+
4753
#### `HistoryEditor.withoutMerging(editor: HistoryEditor, fn: () => void): void`
4854

4955
Apply a series of changes inside a synchronous `fn`, without merging any of

0 commit comments

Comments
 (0)