@dxos/react-client
    Preparing search index...

    Variable useObjectsConst

    useObjects: <T extends Obj.Unknown>(
        refs: readonly Ref.Ref<T>[],
    ) => Obj.Snapshot<T>[]

    Hook to subscribe to multiple Refs' target objects. Automatically dereferences each ref and handles async loading. Returns an array of loaded snapshots (filtering out undefined values).

    This hook is useful for aggregate computations like counts or filtering across multiple refs without using .target directly.

    Type declaration

      • <T extends Obj.Unknown>(refs: readonly Ref.Ref<T>[]): Obj.Snapshot<T>[]
      • Type Parameters

        • T extends Obj.Unknown

        Parameters

        • refs: readonly Ref.Ref<T>[]

          Array of Refs to dereference and subscribe to

        Returns Obj.Snapshot<T>[]

        Array of loaded target snapshots (excludes unloaded refs)