Line

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

ui/client/features/notes/hooks/useNotesLoad

Cockpit client (features), next. Source: ui/client/features/notes/hooks/useNotesLoad.tsx.

Functions#

noteFromAddress()#

noteFromAddress(): string | null

Defined in: ui/client/features/notes/hooks/useNotesLoad.tsx:9

The address names the open note (/notes?note=<id>), so a reload lands on the same one.

Returns#

string | null


useNotesLoad()#

useNotesLoad(send): void

Defined in: ui/client/features/notes/hooks/useNotesLoad.tsx:12

Reads the list once when the screen opens, then opens the note named in the address, else the most recent.

Parameters#

send

(a) => void

Returns#

void