Stop using isLoading booleansMarch 2nd, 2020 — 10 min read Let's play around with the Geolocation API a bit and learn about the perils of isLoading booleans (and similar booleans like: isRejected, isIdle, or isResolved) while we're at it. I'll be using React to demonstrate this, but the concepts apply generally to any framework or language. function geoPositionReducer(state, action) { switch (acti
