Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always call update after enter? #36

Open
leeluolee opened this issue Jun 2, 2016 · 0 comments
Open

Always call update after enter? #36

leeluolee opened this issue Jun 2, 2016 · 0 comments
Labels
Milestone

Comments

@leeluolee
Copy link
Owner

leeluolee commented Jun 2, 2016

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.

@leeluolee leeluolee added this to the v0.2.1 milestone Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant