Line

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

ui/client/features/review/hooks/useReviewList

Cockpit client (features), next. Source: ui/client/features/review/hooks/useReviewList.tsx.

Functions#

useReviewList()#

useReviewList(baseFromRoute): object

Defined in: ui/client/features/review/hooks/useReviewList.tsx:17

The branch list for the current project, ranked and kept current: the first read is immediate, the analysis of every branch is requested once (the server queues it and runs it off its request thread), and the list is re-read until every row has its badges.

Parameters#

baseFromRoute

string | null

Returns#

object

base

base: string | null

order

order: ListOrder

reload

reload: () => void = reanalyse

Returns

void

setBase

setBase: Dispatch<SetStateAction<string | null>>

setOrder

setOrder: Dispatch<SetStateAction<ListOrder>>

settling

settling: boolean

state

state: ListState