mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
prevent useless rerenders when updatingEnv on unmounted component
fix #4
This commit is contained in:
+3
-1
@@ -280,7 +280,9 @@ export class Component<
|
||||
this.env = Object.create(this.env);
|
||||
}
|
||||
Object.assign(this.env, nextEnv);
|
||||
return this.render();
|
||||
if (this.__widget__.isMounted) {
|
||||
return this.render();
|
||||
}
|
||||
}
|
||||
|
||||
async updateProps(nextProps: Props): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user