Sanity Library Reference Docs
    Preparing search index...

    Variable useApplicationConst

    useApplication: <Include extends ApplicationInclude = never>(
        applicationId: string,
        options?: { include?: Include[] },
    ) => FetcherHookResult<Application<Include>> = ...

    Returns a single application 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