onremove order and description
This commit is contained in:
parent
875984c177
commit
310c8a09a5
1 changed files with 1 additions and 1 deletions
|
|
@ -21,8 +21,8 @@ Mithril's `config` method is now replaced by several lifecycle methods to improv
|
||||||
- **`oninit(vnode)`** Runs once before vnode diff and creation
|
- **`oninit(vnode)`** Runs once before vnode diff and creation
|
||||||
- **`oncreate(vnode)`** Runs once after the DOM element is created. It's guaranteed to run after all DOM changes in the render cycle
|
- **`oncreate(vnode)`** Runs once after the DOM element is created. It's guaranteed to run after all DOM changes in the render cycle
|
||||||
- **`onupdate(vnode)`** Runs after vnode is diffed by a re-render. It's guaranteed to run after all DOM changes in the render cycle
|
- **`onupdate(vnode)`** Runs after vnode is diffed by a re-render. It's guaranteed to run after all DOM changes in the render cycle
|
||||||
- **`onremove(vnode)`** Runs before DOM removal.
|
|
||||||
- **`onbeforeremove(vnode, done)`** Runs before DOM removal and waits for `done` to be called before actually removing the DOM element. Affects when `onremove` is called
|
- **`onbeforeremove(vnode, done)`** Runs before DOM removal and waits for `done` to be called before actually removing the DOM element. Affects when `onremove` is called
|
||||||
|
- **`onremove(vnode)`** Runs after DOM removal.
|
||||||
|
|
||||||
## Robustness
|
## Robustness
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue