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

    Function useType

    • Subscribe to and retrieve a type by its URI from a space: a static schema's typename DXN, or a persisted (database) schema's echo: EID (what Type.getURI / getTypeURIFromQuery produce).

      Fans across the owning space db (persisted custom types) and the shared registry (static/runtime plugin types). Persisted types live only in the db, so a registry-only lookup misses them.

      DXN matching is version-agnostic: dxn:com.example/Foo matches dxn:com.example/Foo:0.1.0. This lets callers pass a bare typename DXN (no version) from e.g. a ReferenceAnnotation.

      Type Parameters

      • T extends AnyEntity = AnyEntity

      Parameters

      • Optionaldb: Database
      • OptionaltypeUri: URI

      Returns undefined | T