mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
no reactivity in setup
This commit is contained in:
@@ -132,7 +132,9 @@ export class ComponentNode<P extends Props = any, E = any> implements VNode<Comp
|
|||||||
this.component = new C(props, env, this);
|
this.component = new C(props, env, this);
|
||||||
const ctx = Object.assign(Object.create(this.component), { this: this.component });
|
const ctx = Object.assign(Object.create(this.component), { this: this.component });
|
||||||
this.renderFn = app.getTemplate(C.template).bind(this.component, ctx, this);
|
this.renderFn = app.getTemplate(C.template).bind(this.component, ctx, this);
|
||||||
|
withoutReactivity(() => {
|
||||||
this.component.setup();
|
this.component.setup();
|
||||||
|
});
|
||||||
currentNode = null;
|
currentNode = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user