Closed Jascha-Sundaresan closed 7 years ago
this
const wrapWithPending = (pendingKey, cb) => effects => effects.setFlag(pendingKey, true) .then(cb) .then(value => effects.setFlag(pendingKey, false).then(() => value));
needs to be
const wrapWithPending = (pendingKey, cb) => effects => effects.setFlag(pendingKey, true) .then(() => cb) .then(value => effects.setFlag(pendingKey, false).then(() => value));
As discussed on twitter, this was a misunderstanding. Please reach out if you run into more issues!
this
needs to be