Skip to main content
API Reference / modelence / server / LiveQueryWatch
LiveQueryWatch = (context) => LiveQueryCleanup | void
Defined in: packages/modelence/src/live-query/context.ts:25 Watch function that sets up real-time monitoring. Receives a context with publish callback to trigger re-fetches. Returns a cleanup function.

Parameters

ParameterType
contextWatchContext

Returns

LiveQueryCleanup | void