These are chat archives for reflux/refluxjs

29th
Oct 2015
Chris Stegner
@cstegner
Oct 29 2015 11:29

Good morning.

I'm wondering if there is a way to use "listenables" on a store for a { asyncResult : true } action?

Something like:

var MyActions = Reflux.createActions({
    getOne : { asyncResult : true }
});

var MyStore = Reflux.createStore({
    listenables: [MyActions],

    onGetOneCompleted : function(){
        console.log("STORE FIRED!")
    }
})
Chris Stegner
@cstegner
Oct 29 2015 12:11
I think I found my answer here. https://github.com/reflux/refluxjs#listenables-and-asynchronous-actions now to just get it working for me...
Chris Stegner
@cstegner
Oct 29 2015 12:49
Just realized the store events won't fire until the store is "connected" to a component. All good now!