Skip to content

Conversation

FAL-coffee
Copy link

This PR adds a new parallelLimit option to useSWRInfinite. When used with the parallel option, it limits the number of concurrent fetches to the specified value, instead of fetching all pages in parallel at once. This can help control the load on the server and improve performance for applications that need to fetch many pages.

@FAL-coffee FAL-coffee requested review from huozhi and shuding as code owners June 9, 2025 05:46
Copy link

codesandbox-ci bot commented Jun 9, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

}

// flush all revalidateions in parallel
// flush all revalidations in parallel with optional limit
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo
revalidateions → revalidations

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