Encuentro en gran proyecto algo de código:
const handlePay = () => { someFunction() .then(unwrapResult) .then( () => history.push( authorizedRoutes.accruals.payment.link ), () => {} /* what is it??? */ ); No entiendo por qué este código: () => {}
Aquí hay una mirada más cercana a .then()
p.then(function(value) { // fulfillment }, function(reason) { // rejection });es el rechazo
https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Promise/then