Sanity Library Reference Docs
    Preparing search index...

    Variable useInstallationsConst

    useInstallations: <Include extends InstallationInclude = never>(
        options: InstallationsOptions<Include>,
    ) => PagedFetcherHookResult<InstallationsResponse<Include>> = ...

    Returns the installations matching the given options, a page at a time.

    The hook suspends until the first page is read, so data is always present. loadMore reads the next page and adds its installations to data.data, keeping the ones already shown, also when it fails. The include tokens you pass shape data.data: each requested token adds its field, and omitted ones are absent from the type.

    Type declaration