feat: error if stateful hook is used outside of islands (#1778)

This commit is contained in:
Marvin Hagemeister
2023-09-18 16:25:37 +02:00
committed by GitHub
parent 112d701e5c
commit f9f3cd82ee
9 changed files with 258 additions and 124 deletions
+2
View File
@@ -36,6 +36,8 @@ export class RenderState {
ownerStack: VNode[] = [];
owners = new Map<VNode, VNode>();
#nonce = "";
islandCounter = 0;
error: Error | null = null;
constructor(
routeOptions: RenderStateRouteOptions,