News for hackers. Stuff that matters.
Re:Why Would Anyone Need JavaScript Generator Functions? by aastronaut on Monday November 07, 2022 @01:48PM (#33510302)
> Can you give some specifics about what that means in your case?

react-query has a default behavior to cancel a fetch when the component unmounts (AFAIK), eg. the user changes to another view and the data of the previous view aren't needed anymore. I prefer to only have those fetches pending which are actually needed and seem likely to succeed, as otherwise my SPAs would just add unnecessary load on the API gateway. I specifically had such a case when the backend team was in transition to a microservice architecture, hence the timeouts.

But thanks, will join the discord then after I created a repo to play around.

There are no comments on this comment yet.