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

listenAndPromise is gone in the reflux@0.3.0 #427

Closed CrisLi closed 9 years ago

CrisLi commented 9 years ago

First of all, I do like reflux. It is great!

Uncaught TypeError: LoginAction.login.listenAndPromise is not a function I got this error after I upgraded the reflux to version 0.3.0

Then I go through the readme document. The listenAndPromise method is gone. Why? I do like it. Is there any replacement for this method?

Besides, if there is a upgrade doc, that will be great. Then everyone could know whether should upgrade the reflux.

spoike commented 9 years ago

The promise functionality has moved to a seperate package, reflux-promise, since it was causing a lot of issues and it is easier for a user to set it up than to autodetect in Node and browser environments. This is linked from the CHANGELOG to the reflux-core's CHANGELOG file.

CrisLi commented 9 years ago

@spoike Thanks a lot

spoike commented 9 years ago

The promise functionality has been moved to the separate reflux-promise library.

I'll see if I can add a more clear upgrade note in the README.

14 okt. 2015 kl. 07:44 skrev CrisLi notifications@github.com:

First of all, I do like reflux. It is great!

Uncaught TypeError: LoginAction.login.listenAndPromise is not a function I got this error after I upgraded the reflux to version 0.3.0

Then I go through the readme document. The listenAndPromise method is gone. Why? I do like it. Is there any replacement for this method?

Besides, if there is a upgrade doc, that will be great. Then everyone could know whether should upgrade the reflux.

— Reply to this email directly or view it on GitHub.