Sanity Library Reference Docs
    Preparing search index...

    Interface AddonDatasetContextValueBeta

    interface AddonDatasetContextValue {
        client: SanityClient;
        createAddonDataset: () => Promise<SanityClient>;
        error: Error;
        isCreatingDataset: boolean;
        ready: boolean;
    }
    Index

    Properties

    client: SanityClient

    Addon dataset client, currently called comments dataset.

    createAddonDataset: () => Promise<SanityClient>

    Function to create the addon dataset if it does not exist.

    error: Error
    isCreatingDataset: boolean
    ready: boolean