fix(core): improve island props serialization (#3071)

This commit is contained in:
Marvin Hagemeister
2025-06-30 16:31:58 +02:00
committed by GitHub
parent 8d3b8c53c6
commit 8416078b6a
5 changed files with 135 additions and 7 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
import { useEffect } from "preact/hooks";
import { useSignal } from "@preact/signals";
export function EscapeIsland(_props: { str: string }) {
export function EscapeIsland(props: { str: string }) {
const active = useSignal(false);
useEffect(() => {
@@ -10,7 +10,8 @@ export function EscapeIsland(_props: { str: string }) {
return (
<div class={active.value ? "ready" : ""}>
it works
<p>it works</p>
<div>{props.str}</div>
</div>
);
}