Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional fetch abort param #137

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Conversation

piercefreeman
Copy link
Owner

@piercefreeman piercefreeman commented Nov 19, 2024

In some settings (like debouncing network requests), it is useful to cancel an inflight request to the backend server. fetch has native support for this via its AbortSignal parameter. This PR extends the function signature of frontend actions to support passing in a signal parameter. If not provided, the behavior will continue as it is today where requests will continue until they succeed or time out.

@piercefreeman piercefreeman force-pushed the feature/add-network-signal branch from 5e0d562 to 16972e1 Compare November 20, 2024 02:00
@piercefreeman piercefreeman merged commit 16e1e97 into main Nov 20, 2024
20 checks passed
@piercefreeman piercefreeman deleted the feature/add-network-signal branch November 20, 2024 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant