stateman
stateman copied to clipboard
Always call `update` after `enter`?
We have used stateman in a dozen projects already and find that we always do similiar work in enter
and update
, so most of the states like below
stateman.state({
'app.blog': {
enter: function( option ){
this.udpate(option)
}
update: function(option){
// logic here
}
}
})
At that rate, why not call update
after enter
?
Plan to change the logic in 0.3.0
.
Just get it over with instead of keep suffering.