1 min readOct 14, 2019
Ah jeez, that’s a typo, that was not supposed to be:
.then(updateTitleIfNew());
// but rather
.then(updateTitleIfNew);
and of course, I get it now, if I don’t pass in a function at all, it won’t properly wait for the response. My test didn’t make a call to wait for it so it didn’t matter, but it would’ve if we needed the data. Beautiful, the code is now properly updated.