You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @natemoo-re , it's been a month and I know this is minor for you guys, but is there any way we can get this into the pipeline? Quite important for me :) I'm out of country until a month from now so I won't really be able to look into it myself.
@torchsmith not sure when we'll be able to get to this, as it's a pretty involved change to the design of our slot handling.
Thinking of ways to possibly unblock you, would it be possible to move this logic into a Preact component so you can take advantage of the full dynamicism of JSX?
What version of
@astrojs/compiler
are you using?1.3.2
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Using preact/react-compat for this example.
The following (.astro file) contents:
Turns into
The issue is that astro cannot statically analyze the slots and is falling back on this $$mergeSlots.
Because of this slots are simply not being rendered.
More info at this discord convo with Nate:
https://discord.com/channels/830184174198718474/845430950191038464/1129498064592310408
Link to Minimal Reproducible Example
Not yet. Maybe later.
The text was updated successfully, but these errors were encountered: