Sanity Library Reference Docs
    Preparing search index...

    A useSyncExternalStore-shaped reactive state source.

    interface DocStore<T> {
        getSnapshot: () => ObserverState<T>;
        subscribe: (onChange: () => void) => () => void;
    }

    Type Parameters

    • T
    Index

    Properties

    getSnapshot: () => ObserverState<T>
    subscribe: (onChange: () => void) => () => void