Delay IsLoading....
i'm trying to delay a loading spinner from appearing if the api takes less than 200ms to get the data. I've tried a number of implementations and failed, can anyone help?
3 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thank you for getting back to me with these solutions. I'm ganna read over them and implement. 🙏🏾
You’re still gonna have issues with it flashing a spinner
not sure if you want to artificially show the spinner for x time if it resolves immediately after 200ms
I use promise.race for these