Overview
useFetchDrafts returns a function that retrieves the authenticated user’s unpublished draft entities in a paginated response.
Requires an authenticated user. Only the user’s own drafts are returned.
Usage Example
Parameters
number
Page number (1-indexed). Defaults to
1.number
Results per page.
string
Filter drafts by source ID.
string
Filter drafts by space.
string | string[]
Populate related fields. Accepted values:
"user", "space", "topComment", "saved", "files".Returns
Entity[]
Array of draft entities for the current page.
number
Current page number.
number
Number of results per page.
number
Total number of pages.
number
Total count of the user’s drafts.
boolean
true if there are additional pages available.
