Skip to content

spatial-monorepo


spatial-monorepo / ui/src / CMSSyncOptions

Interface: CMSSyncOptions

Defined in: packages/ui/src/useCMSSync.ts:10

Properties

interval?

optional interval?: number

Defined in: packages/ui/src/useCMSSync.ts:12

Poll interval in ms. Omit to disable polling (manual / webhook-push only).


onError?

optional onError?: (err) => void

Defined in: packages/ui/src/useCMSSync.ts:16

Called when the fetcher throws. Does not crash the map.

Parameters

err

Error

Returns

void


onUpdate?

optional onUpdate?: (occupants) => void

Defined in: packages/ui/src/useCMSSync.ts:14

Called with the fresh occupant list after each successful sync.

Parameters

occupants

Occupant[]

Returns

void

Released under commercial licensing.