0
我有以下存储和操作行为存储后触发已经改变
const AliceStore = Reflux.createStore({
update() {
var aliceNewValue = ...
this.trigger(aliceNewValue);
}
});
const BobActions = Reflux.createActions(['notifyBob']);
,现在我想的AliceStore.trigger(aliceNewValue)
每次调用后火BobActions.notifyBob(aliceNewValue)
。
我知道我可以从this.trigger(aliceNewValue)
后AliceStore
火了,但我想以某种方式设置在BobActions
这样听:AliceStore.listen(this.onAliceStoreChange)