Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/states/hooks/useStatesGallery

Cockpit client (features), next. Source: ui/client/features/states/hooks/useStatesGallery.tsx.

Functions#

useStatesGallery()#

useStatesGallery(): object

Defined in: ui/client/features/states/hooks/useStatesGallery.tsx:9

Drives the /states reference page: pressing "Try again" on the sample error shows a short retrying state, then counts the attempt.

Returns#

object

retries

retries: number = state.retries

retry

retry: () => void

Returns

void

retrying

retrying: boolean = state.retrying