In South Bay Area born and raised
In the frontend is where I spend most of my days.
Chillin' out, codin', approachin' a goal,
And all sketchin' some JS in a console
When an intermittent bug that was all about hate
Started makin' trouble in my UI state.
It got in one endless loop, and had browser grind. It said,
"Something or the other, blah blah blah's undefined."
I waited with a .then() and when it resolved
The JSON looked all good; API's absolved.
If anything I could say the issue's just rare…
But I thought naw, let's squash it. Yo, on with repairs!
I put in a debugger; or maybe seven or eight
And spoke to the coder who designed this frustrator.
Looked at the call stack found a race condition
So I built in a fix. I'm a browser physician.