useProjectDefaultItems
Datalayer Core / useProjectDefaultItems
Function: useProjectDefaultItems()
useProjectDefaultItems(
projectUid):UseQueryResult<{defaultDocumentUid:string|null;defaultNotebookUid:string|null; },Error>
Defined in: src/hooks/useProjects.ts:239
Hook to fetch the default notebook and document UIDs for a project.
This calls the spacer GET /spaces/:uid/default-items endpoint which
returns the UID of the first notebook and first document in the space.
Parameters
projectUid
string | undefined
Returns
UseQueryResult<{ defaultDocumentUid: string | null; defaultNotebookUid: string | null; }, Error>