mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] component: propagate errors to caller
Errors from mounted/willPatch/patched should be returned to caller (either mount or render functions) part of #410
This commit is contained in:
@@ -444,13 +444,9 @@ export class Component<T extends Env, Props extends {}> {
|
||||
}
|
||||
__owl__.isMounted = true;
|
||||
__owl__.currentFiber = null;
|
||||
try {
|
||||
this.mounted();
|
||||
if (__owl__.mountedCB) {
|
||||
__owl__.mountedCB();
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e); // TODO : add a test
|
||||
this.mounted();
|
||||
if (__owl__.mountedCB) {
|
||||
__owl__.mountedCB();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user