Skip to main content

setAutoFreeze

const setAutoFreeze: (autoFreeze: boolean) => void = immerSetAutoFreeze

Defined in: packages/core/src/utils/immerInstances.ts:16

Globally enables or disables immer's auto-freeze, i.e. the deep freeze applied to every query returned by add, update, remove, move, insert, and group.

Re-exported from immer so that consumers mixing these tools with their own produce calls can switch both at once. Prefer the per-call freeze option, or the QueryManager option of the same name, when the change should not be process-wide. A per-call freeze: false wins regardless of this setting; a per-call freeze: true does not re-enable freezing once this has turned it off, since it selects immer's default instance.

Parameters

ParameterType
autoFreezeboolean

Returns

void


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.