Files
sweet/packages/plugin-vite/demo/islands/IslandNestedInner.tsx
T
Marvin Hagemeister 399cbc3aa2 fix(vite): nested islands not working (#3440)
This PR makes nested islands work. Problem was that only entry files
have the `src` property in the vite manifest. For that we need to ensure
that every island is an entry point.

Fixes https://github.com/denoland/fresh/issues/3439
2025-09-15 17:55:44 +02:00

16 lines
271 B
TypeScript

import { useEffect, useState } from "preact/hooks";
export function IslandNestedInner() {
const [ready, set] = useState(false);
useEffect(() => {
set(true);
}, []);
return (
<div class={ready ? "inner-ready" : ""}>
<p>Inner</p>
</div>
);
}