EPISODE · Jun 24, 2022 · 6 MIN
State bloating vs api call (again and again)
from The Call Kent Podcast · host Kent C. Dodds
When a user enters the tab (btw it's a SPA) I call the api in useEffect and saving the response in redux store. May I know is it better approach to call the api again and again when the user leaves and enters the page? (In this case I see a flicker of loading every time) or storing the response in redux store (UX for this screen is good but is it harming the performance overall?) or storing the response in component state? (Is there any difference b/w this and above approach performance wise?)Thanks again for this opportunity & Regards Rahimuddin
Embed this episode
NOW PLAYING
State bloating vs api call (again and again)
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.