Skip to content

Instantly share code, notes, and snippets.

View esnunes's full-sized avatar

Eduardo Nunes esnunes

View GitHub Profile
@esnunes
esnunes / sample.js
Last active August 29, 2015 14:05
react flux dispatcher promises with circular dependency detection
var Promise = require('es6-promise').Promise;
var handlerA = function () {
return waitFor([handlerB])
.then(function () {
console.log('handlerA');
});
};
var handlerB = function () {