ui/client/features/directory-browser/hooks/useDirectoryLoader
Cockpit client (features), next. Source: ui/client/features/directory-browser/hooks/useDirectoryLoader.tsx.
Functions#
useDirectoryLoader()#
useDirectoryLoader():
object
Defined in: ui/client/features/directory-browser/hooks/useDirectoryLoader.tsx:10
Owns the list's state and the load primitive. The server only ever lists the signed-in user's own workspace, one level, so there is no path to load from.
Returns#
object
dispatch
dispatch:
ActionDispatch<[DirectoryBrowserAction]>
load
load: (
offset?) =>Promise<DirListingView|null>
Parameters
offset?
number
Returns
Promise<DirListingView | null>
state
state:
DirectoryBrowserState