-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Labels
1 - RequestA request made by a member of the communityA request made by a member of the community
Description
When a component is removed before a network request is resolved, or an old request is replaced with a new one, the old request should be canceled. This would reduce wasted network bandwidth and reduce load on the back-end server.
Here is how to tell fetch to abort the request - https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal
Potentially, that could be integrated into the useAsyncState hook since that's where most network requests are made from on the front-end
Metadata
Metadata
Assignees
Labels
1 - RequestA request made by a member of the communityA request made by a member of the community
Type
Projects
Status
✅ Done