Skip to content

ConvergenceTrigger

Defined in: packages/client/src/convergence.ts:32

The scheduling-policy seam. Browser (online / visibilitychange) and React Native (AppState / NetInfo) are two genuine adapters — which is what earns this its place as a seam rather than being inlined.

shouldConverge: () => boolean

Defined in: packages/client/src/convergence.ts:36

Whether a convergence pass should run right now (e.g. online and foregrounded).

boolean


subscribe: (onSignal) => () => void

Defined in: packages/client/src/convergence.ts:34

Register a callback fired whenever the app wants a convergence attempt; returns an unsubscribe.

() => void

() => void