Closed Cellule closed 9 years ago
example:
function() { actions.user.emailExists( { silent: true, data: { email: newValue.value } }, function(err, result) { // treat this response only if its the last we made if(curReqId === self.state.email.reqId) { var newState = err || !result ? "invalid" : "valid"; newValue.state = newState; self.setState({ email: newValue }); } });
CR done, good to merge. I imagine the component that uses this will be part of a future PR?
it is in another module (Transaction), but I believe others will want to use this as well
example: