reflux / refluxjs

A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
BSD 3-Clause "New" or "Revised" License
5.36k stars 330 forks source link

Completed subaction does not get called #419

Closed apreg closed 8 years ago

apreg commented 9 years ago

Here is my action definition:

var UserActions = Reflux.createActions({
  loginUser: {asyncResult: true},
  logoutUser: {asyncResult: false}
});

If I try to listen to it in a store with listenables then the onLoginUserCompleted subaction gets called but what if I don't want to listen to all of the UserActions? I tried listenTo but with that the subaction did not get called. How could I achieve that?

devinivy commented 8 years ago

Hi @apreg– I created some explicit tests for this in reflux-core here (https://github.com/reflux/reflux-core/pull/22), and they currently pass. Let us know if this is still an issue.