fix: error on duplicate partial name (#1958)

This commit is contained in:
Marvin Hagemeister
2023-10-18 20:04:37 +02:00
committed by GitHub
parent 4c59f9df65
commit 7896005329
5 changed files with 199 additions and 141 deletions
+2
View File
@@ -39,6 +39,7 @@ export class RenderState {
#nonce = "";
error: Error | null = null;
isPartial: boolean;
encounteredPartials = new Set<string>();
partialCount = 0;
partialDepth = 0;
islandDepth = 0;
@@ -71,5 +72,6 @@ export class RenderState {
this.renderingUserTemplate = false;
this.ownerStack = [];
this.owners.clear();
this.encounteredPartials.clear();
}
}