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.
Vue implementation of ContextPort for the ResolverContextShape.
provide(value, _children)calls Vue'sprovide(VUE_RESOLVER_KEY, value)on the current component instance. The_childrenargument 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. Returnsundefinedbecause Vue'sprovidedoes not produce a renderable wrapper.consume()callsinject(VUE_RESOLVER_KEY, undefined)and returns the active resolver, orundefinedwhen no provider is mounted in scope (matching the React adapter'sundefined-default behaviour).Must be called from inside a component's
setup()— Vue'sprovideandinjectboth rely on the current component instance, which is only available during component setup.