File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,27 @@ const { framework } = Astro.params;
1111
1212// Only render if current framework matches, or if no frameworks specified (all frameworks)
1313const shouldRender = ! frameworks || frameworks .includes (framework as SupportedFramework );
14- const html = shouldRender ? await Astro .slots .render (' default' ) : ' ' ;
1514---
1615
17- { shouldRender && <Fragment set :html = { html } />}
16+ {
17+ /*
18+ What I WANT to do is
19+ ```
20+ {shouldRender && <slot />}
21+ ```
22+
23+ But I'm running into some crazy problems with hydration.
24+ Putting client:* in one of these conditionals causes Astro to just give up hydrating the whole app for some reason.
25+ TODO: fix this
26+
27+ So, while I debug those... let's do this
28+ */
29+ }
30+ <div
31+ class =" contents"
32+ hidden ={ ! shouldRender }
33+ data-search-ignore ={ shouldRender ? undefined : " all" }
34+ data-llms-ignore ={ shouldRender ? undefined : " all" }
35+ >
36+ <slot />
37+ </div >
You can’t perform that action at this time.
0 commit comments