[IMP] components: rename onRender->onWillRender, add onRendered

This commit is contained in:
Géry Debongnie
2021-11-19 09:43:06 +01:00
committed by Aaron Bohy
parent a400fc5e69
commit 629b379ea9
11 changed files with 508 additions and 249 deletions
+8 -3
View File
@@ -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(() => {