Skip to content

Ability to rate limit useInfiniteQuery rebuild #537

@conzett

Description

@conzett

In #408 the ability to properly rebuild cursors to prevent gaps and duplicates was added and it works great! I'm running into an issue however with requests that are rate limited by the server as the implementation tries to fire off the requests as fast as possible it seems.

Additionally, with a large number of pages, we will run into an issue where we're going to hit the maximum number of async requests a browser can issue simultaneously, probably an edge case but I have run into it.

It would be nice if there was some kind of configuration option to throttle the rebuild requests.

Thanks for all your work on react-query!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions