✅ – Ygg – 22-32 Mar 8
Hello, I'm using a
One of then is using a
The list can be lenghty so I decided to track the progress to show it in the UI :
And then I'm using it in the component:
Everything works just fine, except that
The gif is just to show the
So, my question: what's the best approach to this?
I'm a newbie so any obvious suggestions could end up being great!
FreeCompanyContext to use some variables across my websiteOne of then is using a
function to fetch a list of objects from an api.The list can be lenghty so I decided to track the progress to show it in the UI :
And then I'm using it in the component:
Everything works just fine, except that
fetchProgress is a useState so it re-renders everytime it changes and that make the whole page a mess to use (since it's re-rendering the whole page)The gif is just to show the
:hover effect going crazy because of that, this re-renders also make it harder to click the tabs.So, my question: what's the best approach to this?
I'm a newbie so any obvious suggestions could end up being great!

