Function useProxyDi

Resolves a dependency from the ProxyDi container. A wrapper for the ProxyDiContainer.resolve() method.

If dependency ID is unknown.

If the hook is used outside of a ProxyDiProvider.

  • Type Parameters

    • T

      The type of the dependency to resolve.

    Parameters

    • dependencyId: DependencyId

      Identifier for the dependency.

    Returns T

    The resolved dependency instance.