tutuca 0.9.12 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1202,7 +1202,8 @@ class RenderNode extends RenderViewId {
1202
1202
 
1203
1203
  class RenderItNode extends RenderViewId {
1204
1204
  render(stack, rx) {
1205
- return rx.renderIt(stack, this.nodeId, "", this.viewId);
1205
+ const newStack = stack.enter(stack.it, {}, true);
1206
+ return rx.renderIt(newStack, this.nodeId, "", this.viewId);
1206
1207
  }
1207
1208
  pathInNext = true;
1208
1209
  }
@@ -7414,6 +7415,16 @@ class Renderer {
7414
7415
  return r;
7415
7416
  }
7416
7417
  renderView(view, stack) {
7418
+ if (stack.binds.tail !== null) {
7419
+ for (const binds of stack.binds.tail) {
7420
+ if (!binds.isFrame)
7421
+ continue;
7422
+ if (stack.it !== binds.it)
7423
+ break;
7424
+ console.error("recursion detected", stack.it, binds.it);
7425
+ return this.renderComment("RECURSION AVOIDED");
7426
+ }
7427
+ }
7417
7428
  return view.render(stack, this);
7418
7429
  }
7419
7430
  renderText(text) {