Are you an LLM? You can read better optimized documentation at /documentation/api/query-core/interfaces/Subscribable.md for this page in Markdown format
ws-asyncapi API / query-core / Subscribable
Interface: Subscribable<T>
Defined in: .api-entries/query-core/index.d.ts:46
The external-store contract every framework binding adapts (React's useSyncExternalStore, Solid from, Vue ref, …).
Type Parameters
T
T
Methods
subscribe()
subscribe(
onChange): () =>void
Defined in: .api-entries/query-core/index.d.ts:47
Parameters
onChange
() => void
Returns
() => void
getSnapshot()
getSnapshot():
T
Defined in: .api-entries/query-core/index.d.ts:48
Returns
T