Sanity Library Reference Docs
    Preparing search index...
    ObserverState:
        | { status: "loading" }
        | { status: "ready"; value: T }
        | { invalid: InvalidDoc; status: "invalid" }
        | { error: ObserverError; status: "error" }

    Every outcome of a reactive read, normalized across Studio's RxJS streams and the App SDK's state sources. Validation failures are distinct from read failures: the former received data the engine cannot interpret; the latter did not receive a current value at all.

    Type Parameters

    • T