sdk.viewcontroller
Home > @kittl/sdk > ViewController
ViewController interface
Base interface for view controllers that manage state and provide API access.
Signature:
export interface ViewController<State extends Record<string, unknown>, Api = unknown>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
() => Api | Gets the API instance for this controller. Use this for synchronous operations such as setting values in the state. | ||
() => KittlStateStore<State> | Gets the state store for this controller. Use this to subscribe to state changes. |