spatial-monorepo / ui/src / CMSSyncOptions
Interface: CMSSyncOptions
Defined in: packages/ui/src/useCMSSync.ts:10
Properties
interval?
optionalinterval?:number
Defined in: packages/ui/src/useCMSSync.ts:12
Poll interval in ms. Omit to disable polling (manual / webhook-push only).
onError?
optionalonError?: (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?
optionalonUpdate?: (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
