no reactivity in setup

This commit is contained in:
Nicolas Bayet
2025-09-29 18:50:26 +02:00
parent 6f2600ba5f
commit 38574a1f3a
+3 -1
View File
@@ -132,7 +132,9 @@ export class ComponentNode<P extends Props = any, E = any> implements VNode<Comp
this.component = new C(props, env, this);
const ctx = Object.assign(Object.create(this.component), { this: this.component });
this.renderFn = app.getTemplate(C.template).bind(this.component, ctx, this);
this.component.setup();
withoutReactivity(() => {
this.component.setup();
});
currentNode = null;
}