Skip to content

Commit 3f91c05

Browse files
authored
chore(docs): update history methods api doc (#712)
1 parent 0bac19d commit 3f91c05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/docs/api/useEditor.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const { connectors, actions, query, ...collected } = useEditor(collector);
4747
["undo", "() => void", "Undo the last recorded action"],
4848
["redo", "() => void", "Redo the last undone action"],
4949
["ignore", "() => ActionMethods", "Run an action without recording its changes in the history"],
50-
["throttle", "(throttleRate: number = 500) => ActionMethods", "Run an action while throttling its changes recorded to the history. This is useful if you need to group the changes made by a certain action as a single history record"],
50+
["throttle", "(throttleRate: number = 500) => ActionMethods", "Run an action while throttling its changes recorded to the history. This is useful if you need to group the changes made by a certain action as a single history record within a specified time window (throttleRate)."],
51+
["merge", "() => ActionMethods", "Run an action and merge its changes into the latest recorded history entry. This is useful for combining multiple related changes into a single history record."],
5152
]]
5253
]],
5354
["query", "QueryMethods", [

0 commit comments

Comments
 (0)