A simple core library for uni-directional dataflow application architecture inspired by ReactJS Flux
BSD 3-Clause "New" or "Revised" License
48
stars
19
forks
source link
Async actions couldn't return promise properly in IE even with Reflux.setPromiseFactory has been called before. #9
Closed
kpaxqin closed 9 years ago
I've meet this issue recently:
and the only way to work properly is
I track the code and find that in this line of createAciton.js, we won't call
triggerPromise
when_.environment.hasPromise
returns false.And when I setPromiseFactory, only
_.createPromise
has been set, the_.environment.hasPromise
still remains false.This leads different behaviours between IE and Chrome, though I polyfill the Promise support by setPromiseFactory.
Can we fix this issue this way ?