-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when an island returns a <tr/>
component.
#1140
Comments
The error is from |
Just silencing the error if the My island looks like this: import { newTripFormVisible } from "@/utils/signals.ts";
const TripsListRow = () => (
<tr>
<td>Hello</td>
</tr>
);
export default function NewTripForm() {
if (!newTripFormVisible.value) {
// Islands cannot return null.
// TODO: Revisit when https://github.com/denoland/fresh/issues/502 is fixed.
return <tr style="display:none" />;
}
// This doesn't work
return <TripsListRow />;
// This does
return (
<tr>
<td>Hello</td>
</tr>
);
} Where If
As a workaround, I'm using |
@lucacasonato yeah the error is coming from |
I have a server-side rendered table that uses an island that returns a
<tr />
.The island code can be as simple as
In the browser console, I get this error from Preact:
The text was updated successfully, but these errors were encountered: