API Reference

IStateEventListenerinterface

Keyed callback listener contract used by subscribeStateEvents(...) for direct (context, index) state and context-rebind notifications.

Quick facts
Kind
interface
Members
2
Package
@rs-x/core

Declaration

export interface IStateEventListener {
  onStateChange: (change: IStateChange) => void;
  onContextChanged: (change: IContextChanged) => void;
}

Import

import type { IStateEventListener } from '@rs-x/state-manager';

Members

2 members in this interface.

onContextChanged
property
onContextChanged: (change: IContextChanged) => void

Type

(change: IContextChanged) => void

onStateChange
property
onStateChange: (change: IStateChange) => void

Type

(change: IStateChange) => void