Mike Cronin
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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

Write a response