@dxos/echo
    Preparing search index...

    Function getReactiveOrUndefined

    • Synchronous version of Obj.getReactive that returns undefined instead of throwing. Accepts undefined input so callers can pass the result of useObject directly.

      Type Parameters

      Parameters

      • snapshot: undefined | Obj.Snapshot<T>

        A snapshot of the object (from Obj.getSnapshot or useObject), or undefined.

      Returns undefined | T

      The reactive object, or undefined if the snapshot is undefined or unresolvable.

      O(1) working-set lookup by id; never loads from disk.