Replies: 1 comment 1 reply
-
please close, see issue 192 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
When using
useSWRInfinite
, thesetSize
function preserves data, which is great as it avoids the page to jump until the new data is returned.In our case, the query also expects a search term that may be different between calls. but when the query parameter changes, the data gets wiped (becomes undefined until data is validated) so the page jumps (data is cleaned) until data is back and then shown.
Is there a way to use
useSWRInfinite
in a way that not only the page size change while still preserves the same behavior?Thanks,
Asaf.
Beta Was this translation helpful? Give feedback.
All reactions