schema-components - v3.7.0
    Preparing search index...

    Variable VueResolverContextConst

    VueResolverContext: ContextPort<ResolverContextShape> = ...

    Vue implementation of ContextPort for the ResolverContextShape.

    provide(value, _children) calls Vue's provide(VUE_RESOLVER_KEY, value) on the current component instance. The _children argument is unused — Vue's provide model attaches the value to the component instance rather than wrapping children in a new component — but kept for ContextPort compatibility. Returns undefined because Vue's provide does not produce a renderable wrapper.

    consume() calls inject(VUE_RESOLVER_KEY, undefined) and returns the active resolver, or undefined when no provider is mounted in scope (matching the React adapter's undefined-default behaviour).

    Must be called from inside a component's setup() — Vue's provide and inject both rely on the current component instance, which is only available during component setup.