Skip to content

spatial-monorepo


spatial-monorepo / core/src / UsePopularTimesResult

Interface: UsePopularTimesResult

Defined in: packages/core/src/hooks/usePopularTimes.ts:44

Properties

data

data: HourlyBucket[]

Defined in: packages/core/src/hooks/usePopularTimes.ts:46

Hourly buckets for the given spaceId; empty until the first event arrives.


error

error: Error | null

Defined in: packages/core/src/hooks/usePopularTimes.ts:50

Non-null when the bus emits an error payload for the spaceId.


isLoading

isLoading: boolean

Defined in: packages/core/src/hooks/usePopularTimes.ts:48

True from mount until the first event (data or error) is received.

Released under commercial licensing.