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

feat: add progressUpdateIntervalMs config option; #6379

Open
wants to merge 3 commits into
base: v1.x
Choose a base branch
from

Conversation

nick-michael
Copy link

Resolves #6378

Adds a new option in the AxiosRequestConfig

progressUpdateIntervalMs?: number;

Allows customisation of the progress event frequency.

According to MDN, the browser standard for XHR is at most once every 50ms, while axios is using a mixture of every 300ms or every 500ms depending on whether we use the XHR, Fetch, or http adapter.

With this change, users can choose how frequent these updates are sent.

@nick-michael nick-michael changed the title feat: add 'progressUpdateIntervalMs' config option; feat: add progressUpdateIntervalMs config option; May 3, 2024
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.

Add support for configuring the frequency of progress update events
1 participant