Skip to content

Commit

Permalink
chore(docs): update history methods api doc (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maders authored Feb 5, 2025
1 parent 0bac19d commit 3f91c05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/docs/api/useEditor.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const { connectors, actions, query, ...collected } = useEditor(collector);
["undo", "() => void", "Undo the last recorded action"],
["redo", "() => void", "Redo the last undone action"],
["ignore", "() => ActionMethods", "Run an action without recording its changes in the history"],
["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"],
["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)."],
["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."],
]]
]],
["query", "QueryMethods", [
Expand Down

0 comments on commit 3f91c05

Please sign in to comment.