What are ways to increase the speed of the fetch API? #20698
Labels
🌐Networking
Related to a networking API.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
The fetch, at least for me, is very slow when I call it. I use it to display current data and when someone does something in the front-end, it re fetches the data. It also updates the back-end, but the response is slow when retrieving that data. I initially call the api with
componentDidUpdate
:I mapped the
progress
andunprogress
to give each animation a unique value. So that all animations will not play, but the correct one with theid
does.When a user "likes" something, it updates the back-end and the way I handle the front end is to fetch the same data again.
this.forceUpdateHandler()
is basically the same fetch in thecomponentDidUpdate()
inorder to update the front-end. In my MySQL Query when I limit my data to no more than 5, the fetch times are quick. But any more than that it just slow. What can I do to speed this up?The text was updated successfully, but these errors were encountered: