Skip to main content

QueryHistoryOptions

Defined in: packages/core/src/types/history.ts:7

Options controlling how query changes are recorded for undo/redo.

Shared by the react-querybuilder/history entry point and the index!QueryManager QueryManager utility.

Properties

coalesceMs?

optional coalesceMs?: number

Defined in: packages/core/src/types/history.ts:23

Consecutive changes to the same property of the same rule within this many milliseconds are merged into a single undo step, so that (for example) typing a multi-character value produces one history entry rather than one per keystroke.

Set to 0 to record every change separately.

Default

500

maxHistory?

optional maxHistory?: number

Defined in: packages/core/src/types/history.ts:13

Maximum number of undo steps to retain. Older entries are discarded.

Default

50

caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.