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.
Properties
Section titled “Properties”shouldConverge
Section titled “shouldConverge”shouldConverge: () =>
boolean
Defined in: packages/client/src/convergence.ts:36
Whether a convergence pass should run right now (e.g. online and foregrounded).
Returns
Section titled “Returns”boolean
subscribe
Section titled “subscribe”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.
Parameters
Section titled “Parameters”onSignal
Section titled “onSignal”() => void
Returns
Section titled “Returns”() => void