API reference > @kontsedal/olas-devtools > DevtoolsStore
DevtoolsStore class
Subscribes to a root's debug bus and maintains live state for the devtools panel. Exposes signals so the React layer can consume them via@kontsedal/olas-react's useValue().
Pure logic — no DOM, no React. Construct one per root. Applying one event costs O(1) plus O(path depth): nothing here scans the tree or a log.
Signature:
export declare class DevtoolsStoreConstructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| The cache log: subscriptions, fetches, invalidations and gc, oldest first. Capped at | ||
| Live cache-entry state for the inspector. Seeded from | ||
| ReadSignal<number> | Timeline events the ring buffer overwrote since the last | |
| Unified causal timeline — every event, ordered by seq. A ring buffer. | ||
| The field validation log, oldest first. Capped at | ||
| number | Capacity of the timeline ring buffer. | |
| The mutation log: runs, successes, errors and rollbacks, oldest first. Capped at | ||
| ReadSignal<ReadonlyMap<string, number>> | Subscriptions per cache entry, keyed like the inspector ( | |
| The live controller tree. Unchanged subtrees keep their object identity. |
Methods
Method | Modifiers | Description |
|---|---|---|
Subscribe to the given root's debug bus. Returns the unsubscribe. The caller (typically the React component) is responsible for invoking it on unmount. | ||
Clear every log AND the unified timeline, and reset the dropped count. Tree + live cache state are preserved — they reflect the current world, not a history. | ||
Drain pending buffers into the signals. Public so tests can force a flush without waiting on rAF; production code shouldn't call this. | ||
Apply one event. Exposed for tests. | ||
Whether ingestion is currently paused. | ||
Pause event ingestion. Recorded state is preserved; new events drop. | ||
Resume event ingestion. Buffered events from before pause are NOT replayed. | ||
Search controllers, live queries, mutations, form fields and event payloads for | ||
Search-index diagnostics: how often it was built, and how many values it turned into text. |