RenderStateChangeEvent

Unpublished development API. This package is under development and is not available as a published release.

The store changed: the written path, its value, and the whole snapshot.

import type { RenderStateChangeEvent } from '@threadplane/react/render';

Declaration

export interface RenderStateChangeEvent  {
  readonly path: string;
  readonly snapshot: DeepReadonly<Record<string, unknown>>;
  readonly type: 'stateChange';
  readonly value: unknown;
}

Members

path

readonly path: string;

snapshot

readonly snapshot: DeepReadonly<Record<string, unknown>>;

type

readonly type: 'stateChange';

value

readonly value: unknown;