Skip to main content
type ListChangedHandler<T> = {
  autoRefresh?: boolean;
  debounceMs?: number;
  onChanged: (error, items) => void | Promise<void>;
};
Defined in: client/handlers.ts:40 Config for receiving server-initiated list-change notifications. Set debounceMs: 0 in tests for instant delivery.

Type Parameters

T

T

Properties

autoRefresh?

optional autoRefresh?: boolean;
Defined in: client/handlers.ts:43 Whether to auto-fetch the updated list before calling onChanged. Default: true.

debounceMs?

optional debounceMs?: number;
Defined in: client/handlers.ts:45 Debounce window in ms. Default: 300. Set to 0 to disable.

onChanged

onChanged: (error, items) => void | Promise<void>;
Defined in: client/handlers.ts:41

Parameters

error
Error | null
items
T[] | null

Returns

void | Promise<void>