Skip to main content
Version: 0.1.2

Function: getDIAdapter()

Imported from @react-logic/di

getDIAdapter(): DIAdapter

Returns the currently-installed DI adapter. Throws if none is registered (which only happens if the entry file never imported @react-logic/di — the import side-effect registers the default adapter).

Most user code shouldn't need this. It's exposed for adapter implementers, tooling, and the framework's own internals (useLogic, <Injector>, etc.).

Returns

DIAdapter