Skip to content

Commit d059498

Browse files
committed
Revert "fix(site): true conditional rendering in FrameworkCase (#1223)"
This reverts commit 55a0755.
1 parent d67a369 commit d059498

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

site/src/components/docs/FrameworkCase.astro

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
1313
const 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>

0 commit comments

Comments
 (0)