Sanity Library Reference Docs
    Preparing search index...

    Variable useInstallationsConst

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

    Returns the installations matching the given options.

    The hook suspends until the first fetch succeeds, so data is always present. The include tokens you pass shape data.data: each requested token adds its field, and omitted ones are absent from the type.

    Type declaration