@statesync/core / SyncPhase
Type Alias: SyncPhase
ts
type SyncPhase =
| "start"
| "subscribe"
| "invalidation"
| "refresh"
| "getSnapshot"
| "apply"
| "protocol"
| "throttle";Defined in: types.ts:245
Identifies the phase of the sync lifecycle where an error occurred.
Used in SyncErrorContext to let error handlers categorize and route errors (e.g. alerting on 'protocol' errors, retrying on 'getSnapshot').
'start'- Error during initial engine startup.'subscribe'- Error while subscribing to invalidation events.'invalidation'- Error while processing an incoming invalidation event.'refresh'- General error during a refresh cycle.'getSnapshot'- Error while fetching the snapshot from the provider.'apply'- Error while applying the snapshot to local state.'protocol'- Protocol-level error (e.g. non-canonical revision, empty topic).'throttle'- Error in the throttling/debounce layer.
