Sanity Library Reference Docs
    Preparing search index...

    Interface SanityInstanceProviderProps

    Props for the SanityInstanceProvider component

    interface SanityInstanceProviderProps {
        children: ReactNode;
        fallback: ReactNode;
        instance: SanityInstance;
    }
    Index

    Properties

    children: ReactNode
    fallback: ReactNode

    React node to show while content is loading. Used as the fallback for the internal Suspense boundary.

    instance: SanityInstance

    A pre-created SanityInstance to provide to child components. The caller owns the instance lifecycle — SanityInstanceProvider will not dispose it on unmount.