-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async actions return undefined instead of Promise #548
Comments
I tried using [email protected] but npm warns about required peer of reflux-core^0.3.0 not installed. I am hesitant to install reflux-core^0.3.0 since [email protected] wants reflux-core^0.4.3...
does not work. undefined is returned by triggerAsync... |
Did you find a solution for this ?, i have a similar problem. i updated this library from 0.1.x and i originally used listenAndPromise but it seems is no longer an option. |
I just could not get this to work which is a shame. I created a workaround by passing in a callback into action, execute a promise inside action handler which eventually invokes the callback...not exactly a clean solution but I had to make it work... |
I have an action defined as
doSomething: { asyncResult: true}
in the code I have
doSomething("some params").then(..).catch(...)
This used to work in 0.2.x versions. After upgrade to 5.0.4 action invocation started to return undefined which naturally was throwing a JS exception.
Why is this no longer working? What is an alternative approach if this is not a bug?
The text was updated successfully, but these errors were encountered: