State bloating vs api call (again and again) episode artwork

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

Episode metadata supplied by the publisher feed · Published Jun 24, 2022

Embed this episode

NOW PLAYING

State bloating vs api call (again and again)

0:00 6:40

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Call Kent Podcast?

This episode is 6 minutes long.

When was this The Call Kent Podcast episode published?

This episode was published on June 24, 2022.

Can I download this The Call Kent Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!