News for hackers. Stuff that matters.
Re:Show HN: Kea – The power of Redux with the simplicity of ... by aidos on Wednesday July 26, 2017 @04:48PM (#14860196)
MST doesn't have the same restrictions as redux in terms of async so you don't need to do it in the same way.

Edit: In MST it would look more like plain js:

    class AuthStore() {
        ....
        
        {
            login() {
                do_async_thing()
                    .then(this.postLoginStuff)
                    .catch(this.handleFailedLogin)
            },
            
            logout() {
                // do logout stuff
            }
        }
    }

There are no comments on this comment yet.