@yesstudio/nuxt-composables
    Preparing search index...

    Function useStrictInject

    • Strictly injects a value provided by an ancestor component or the application.

      Type Parameters

      • T

        The type of the injected value.

      Parameters

      Returns T

      The injected value.

      import { injectionKey } from '#imports'

      const injection = useStrictInject(injectionKey)

      If the injection context is unavailable or the value is not found.