Sanity Library Reference Docs
    Preparing search index...

    Variable useInstallationConst

    useInstallation: <Include extends InstallationInclude = never>(
        installationId: string,
        options?: { include?: Include[] },
    ) => FetcherHookResult<Installation<Include>> = ...

    Returns a single installation by id.

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

    Type declaration