feat(container): document new way to load renderers#8428
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
sasoria
left a comment
There was a problem hiding this comment.
Awesome, I think I found two typos though I'm not sure if that really is the case. I added some suggestions for you.
sarah11918
left a comment
There was a problem hiding this comment.
Thanks @ematipico ! Exposing these is going to make this much easier, for sure! 🙌
Most of my comments are questions, not edits, to make sure we are guiding people in the most helpful way!
| A list of client renderers required by the component. Use this if your `.astro` component renders any [UI framework components](/en/guides/framework-components/) using an official Astro integration (e.g. React, Vue, etc.). For each framework rendered, you must provide an object stating the integration package `name`, as well as both its client and server rendering script | ||
| A list of client renderers required by the component. Use this if your `.astro` component renders any [UI framework components](/en/guides/framework-components/) using an official Astro integration (e.g. React, Vue, etc.). For each framework rendered, you must provide an object stating the integration package `name`, as well as both its client and server rendering script. | ||
|
|
||
| In a vite-full environment, renderers should be loaded by using the function `loadRenderers`, from the virtual module `astro:container`. |
There was a problem hiding this comment.
I'm not sure "a vite-full environment" is clear enough to be helpful. I'm not sure what specific conditions this does or doesn't include. Can you be more descriptive here? (Even to me, then I can put it into words if you like!)
Co-authored-by: Sergio A. Arevalo Soria <sergio.alberto.arevalo.soria@nav.no>
Co-authored-by: Sergio A. Arevalo Soria <sergio.alberto.arevalo.soria@nav.no>
sarah11918
left a comment
There was a problem hiding this comment.
Some polishing thoughts here. See what you think!
Description (required)
This PR updates the container API, and documents the new way to load renderers.
For Astro version:
4.10.0. See astro PR #11144.