mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[DOC] add hooks explanation, and testing/debug page
closes #372 closes #419
This commit is contained in:
+2
-2
@@ -139,10 +139,10 @@ export function useContextWithCB(ctx: Context, component: Component<any, any>, m
|
||||
}
|
||||
});
|
||||
const __destroy = component.__destroy;
|
||||
component.__destroy = (parent) => {
|
||||
component.__destroy = parent => {
|
||||
ctx.off("update", component);
|
||||
delete mapping[id];
|
||||
__destroy.call(component, parent);
|
||||
}
|
||||
};
|
||||
return ctx.state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user