feat: error if stateful hook is used outside of islands (#1778)
This commit is contained in:
@@ -311,6 +311,9 @@ export async function render<Data>(
|
||||
}
|
||||
|
||||
await renderAsync();
|
||||
if (renderState.error !== null) {
|
||||
throw renderState.error;
|
||||
}
|
||||
|
||||
const idx = renderState.headVNodes.findIndex((vnode) =>
|
||||
vnode !== null && typeof vnode === "object" && "type" in vnode &&
|
||||
|
||||
Reference in New Issue
Block a user