Merge pull request #1970 from matildasmeds/docs-components-lifecycle-methods
docs: reorder lifecycle methods to match actual event order
This commit is contained in:
commit
6b434ea590
1 changed files with 3 additions and 3 deletions
|
|
@ -61,6 +61,9 @@ var ComponentWithHooks = {
|
|||
oncreate: function(vnode) {
|
||||
console.log("DOM created")
|
||||
},
|
||||
onbeforeupdate: function(vnode, old) {
|
||||
return true
|
||||
},
|
||||
onupdate: function(vnode) {
|
||||
console.log("DOM updated")
|
||||
},
|
||||
|
|
@ -74,9 +77,6 @@ var ComponentWithHooks = {
|
|||
onremove: function(vnode) {
|
||||
console.log("removing DOM element")
|
||||
},
|
||||
onbeforeupdate: function(vnode, old) {
|
||||
return true
|
||||
},
|
||||
view: function(vnode) {
|
||||
return "hello"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue