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

SwrInfinite include a refresh of the first page with each pageSize changes #1536

Closed
webda2l opened this issue Oct 8, 2021 · 1 comment
Closed

Comments

@webda2l
Copy link

webda2l commented Oct 8, 2021

Bug report

Description / Observed Behavior

With swrInfinite, when updating pageSize, the first page is always refreshed as the same time.

Expected Behavior

Only load the targeted page.

Repro Steps / Code Example

With the current example https://github.com/vercel/swr/tree/master/examples/infinite
image

Additional Context

Latest SWR version as https://github.com/vercel/swr/blob/master/examples/infinite/package.json

@webda2l
Copy link
Author

webda2l commented Oct 8, 2021

Duplicate #1401, sorry

@webda2l webda2l closed this as completed Oct 8, 2021
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

No branches or pull requests

1 participant