Allow user to configure which Promise implementation to use
Related to #26
@RickWong
Yes, I believe that should work. Although on second thought, we should expose this feature with a more explicit API:
import Bluebird from 'bluebird';
import Transmit from 'react-transmit';
Transmit.setPromiseLibrary(Bluebird);
Not sure about the naming. usePromiseConstructor is more descriptive since Promise is not a library.
Transmit.setPromiseLibrary(Promise) // odd
Transmit.usePromiseConstructor(Promise) // better, ihmo
Valid concern. How's Transmit.setPromiseImplementation(Bluebird) ?
I would like setPromiseConstructor most, but all mentioned names are fine with me.
assume es6?
@ericfong This is going to be optional. Assuming ES6 in global scope, but freedom to override within Transmit's scope.
Implemented.