withastro / astro · Issue No. 17598
Astro v7.1.6
Node v22.22.3
System Linux (x64)
Package Manager unknown
Output static
Adapter none
Integrations @astrojs/vue
No response
In Vue, provide can be used to supply a value that a child component can inject to receive. Child components may be provided through slots.
Where <Outer> provides, and <Inner> injects, the following works when embedded in Vue, but not in Astro:
<Outer>
<Inner />
</Outer>
In particular, this stack trace is shown on the server-side:
[Vue warn]: injection "thing" not found.
at <Inner >
at <App>
The behaviour would be the same whether the component is embedded by Astro or Vue: the provide and inject execute in the correct order, with a shared context. In particular, accessing this from Astro is necessary to pass an Astro component deeply through a slot.
Relay reads this issue against the repository's contribution signals: the files it is likely to touch, how the maintainers triage work this size, and what the first contribution would exercise.
The full analysis for this issue is still being assembled. Until then, the description above and the thread on GitHub are the most reliable context.