Sanity Library Reference Docs
    Preparing search index...
    • Maps a store's ready values, turning a thrown error into an invalid snapshot; non-ready states pass through unchanged.

      Memoizes on the inner snapshot's identity: useSyncExternalStore requires getSnapshot to return a referentially stable value between emissions, so this returns the same output object while the input hasn't changed.

      Type Parameters

      • In
      • Out

      Parameters

      Returns DocStore<Out>