fix: incorrect island child validation (#1740)
This commit is contained in:
@@ -18,6 +18,7 @@ import * as $12 from "./routes/island_jsx_text.tsx";
|
||||
import * as $13 from "./routes/island_nested_props.tsx";
|
||||
import * as $14 from "./routes/island_order.tsx";
|
||||
import * as $15 from "./routes/island_siblings.tsx";
|
||||
import * as $16 from "./routes/island_valid_children.tsx";
|
||||
import * as $$0 from "./islands/BooleanButton.tsx";
|
||||
import * as $$1 from "./islands/Counter.tsx";
|
||||
import * as $$2 from "./islands/FragmentIsland.tsx";
|
||||
@@ -47,6 +48,7 @@ const manifest = {
|
||||
"./routes/island_nested_props.tsx": $13,
|
||||
"./routes/island_order.tsx": $14,
|
||||
"./routes/island_siblings.tsx": $15,
|
||||
"./routes/island_valid_children.tsx": $16,
|
||||
},
|
||||
islands: {
|
||||
"./islands/BooleanButton.tsx": $$0,
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import { PassThrough } from "../islands/PassThrough.tsx";
|
||||
|
||||
function Foo() {
|
||||
return <h1>foo</h1>;
|
||||
}
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<div id="page">
|
||||
<PassThrough>hello</PassThrough>
|
||||
<PassThrough>{2}</PassThrough>
|
||||
<PassThrough>{null}</PassThrough>
|
||||
<PassThrough>{true}</PassThrough>
|
||||
<PassThrough>{false}</PassThrough>
|
||||
<PassThrough>{undefined}</PassThrough>
|
||||
<PassThrough>
|
||||
<h1>hello</h1>
|
||||
</PassThrough>
|
||||
<PassThrough>
|
||||
<Foo />
|
||||
</PassThrough>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user