Variable: Injector
Imported from
@react-logic/di
constInjector:FunctionComponent<InjectorProviderProps>
Defined in: di/src/lib/injector-provider.tsx:66
Provides a new injection scope to its children, optionally extending the surrounding scope with additional providers. Services constructed in this scope are torn down when the Injector unmounts.
Example
<Injector provide={[CounterStore, { provide: API_URL, useValue: '/api' }]}>
<App />
</Injector>