goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 323 forks source link

promise resolved from remote action sends correct payload to store, but not to other functions attached to the promise #631

Closed kellyrmilligan closed 8 years ago

kellyrmilligan commented 8 years ago

is it possible to get the payload back from a source with a remote call with a .then() attached to the call as well as it sending the right payload to the store? would be nice sometimes to just get it back and do something right there instead of looking up in the store.

jacobangel commented 8 years ago

Probably not, as this violates the principles of Flux architecture.

kellyrmilligan commented 8 years ago

I should have closed this sorry. It was already merged into a recent pr. I agree with you in principle, however for control flow scenarios it's more practical to check something right there then get it from he store