Hey guys, I’ve been working on the twitch project for the last few days and even though the code seems fine at this point, it acts very buggy. To be more precise, the API response should attach a span (online or offline) to each channel that is being called. However, no matter how many times I refresh the page, it almost always leaves out some of the channels, i.e. they don’t get the online or offline status attached to them. And it’s very random, because each time it’s a different set of channels that gets “ignored” by the API.
Kind of difficult to explain, but to see what I mean, go to my pen and refresh the page a few times: https://codepen.io/CzrNdlcc/pen/wrRypp
I have since looked at some of the other projects and they seem to work fine, so there must be something with my code, but I can’t figure out what it is. There are no console errors.