Strictly injects a value provided by an ancestor component or the application.
The type of the injected value.
The injection key.
The injected value.
import { injectionKey } from '#imports' const injection = useStrictInject(injectionKey) Copy
import { injectionKey } from '#imports' const injection = useStrictInject(injectionKey)
If the injection context is unavailable or the value is not found.
Strictly injects a value provided by an ancestor component or the application.