DEV Community

Discussion on: Finally in Promises & Try/Catch

Collapse
 
mcstepp profile image
Meg Stepp

I also use finally to toggle loading indicators to keep things DRY in my then/catches. If I'm doing the same line of code in both, I move it to the finally block.