Defined in: types.ts:15
Options for connectReduxDevTools.
Properties#
| Property | Type | Description | Defined in |
|---|
maxAge? | number | Maximum number of actions the extension retains before dropping the oldest. Passed through to the extension's maxAge; omitted by default, which leaves the extension's own default (50) in effect. Lower it when full-state snapshots make each action heavy. | types.ts:38 |
name? | string | Instance name shown in the Redux DevTools Extension's instance selector. Defaults to "Retree". | types.ts:20 |
roots? | Record<string, object> | Managed roots to register and inspect, as rootName -> root node. Remarks Each entry is registered via Retree.registerRootName(node, name), so passing roots here replaces separate registration calls. When provided, state snapshots and time travel are scoped to exactly these roots; when omitted, every root already registered with Retree.registerRootName is included. | types.ts:31 |
stateSnapshots? | boolean | Whether to attach a full state snapshot to every action. Defaults to true. Remarks Each snapshot is a structuredClone of every inspected root's raw state — O(state size) per write. That is what makes the extension's state inspector and time travel work, and it is usually fine in development, but for very large trees or write-heavy hot paths set this to false to keep only the action stream. Time travel requires snapshots; with stateSnapshots: false, jump requests are ignored. | types.ts:51 |