mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] components: rename onRender->onWillRender, add onRendered
This commit is contained in:
committed by
Aaron Bohy
parent
a400fc5e69
commit
629b379ea9
+8
-3
@@ -4,13 +4,14 @@ import {
|
||||
onDestroyed,
|
||||
onMounted,
|
||||
onPatched,
|
||||
onRender,
|
||||
onWillRender,
|
||||
onWillPatch,
|
||||
onWillStart,
|
||||
onWillUnmount,
|
||||
onWillUpdateProps,
|
||||
status,
|
||||
useComponent,
|
||||
onRendered,
|
||||
} from "../src";
|
||||
import { BDom } from "../src/blockdom";
|
||||
import { blockDom } from "../src";
|
||||
@@ -181,8 +182,12 @@ export function useLogLifecycle(steps: string[]) {
|
||||
steps.push(`${name}:willUpdateProps`);
|
||||
});
|
||||
|
||||
onRender(() => {
|
||||
steps.push(`${name}:render`);
|
||||
onWillRender(() => {
|
||||
steps.push(`${name}:willRender`);
|
||||
});
|
||||
|
||||
onRendered(() => {
|
||||
steps.push(`${name}:rendered`);
|
||||
});
|
||||
|
||||
onWillPatch(() => {
|
||||
|
||||
Reference in New Issue
Block a user