These are chat archives for reflux/refluxjs

26th
May 2015
Kevin Simper
@kevinsimper
May 26 2015 15:50

I have this action where i create something new, but i need to know when it is finished, so i have to async children, but it needs to be more specific, so I have attached a callback, but it does too coupled:

Actions.new(education, function() {
      this.setState(resetFormular)
    }.bind(this))

Does it make sense? I want to reset the formular after i created a new education?

I could listen to the this.listenTo(Actions.new.completed), but that is every education, and in a race condition it could lead to the wrong form cleared
With the callback I can control the value of this