DEV Community

Discussion on: How to retry when React lazy fails

Collapse
 
eschiebel profile image
Ed Schiebel • Edited

if the if (retriesLeft === 1) { block was moved above the setTimeout, the user wouldn't have to wait another interval for the final rejection.