These are chat archives for reflux/refluxjs

23rd
Jun 2015
Thomas
@rande
Jun 23 2015 13:33
hello
Thomas
@rande
Jun 23 2015 13:38
I want to use a saveAction to store a object in the backend. The saveAction is a promise so I can use the then method to define functions. However, once the promise is over (the saveAction). If I press the save button one more time. The promise is not called as it is already resolved. So it there a way to reset an Action ?
Eric Eastwood
@MadLittleMods
Jun 23 2015 14:37
@rande Why is the saveAction a promise besides the nicety effect of then?
Thomas
@rande
Jun 23 2015 15:08
Refluct.createAction return a promise
@MadLittleMods ^
Eric Eastwood
@MadLittleMods
Jun 23 2015 15:10
@rande It sounds like saveAction should be a normal action: https://github.com/spoike/refluxjs#creating-actions