Replies: 3 comments
-
This is also related to the issue #804 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah I'm struggling to come up with a good solution to this as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Facing the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an example of how to persist pagination in the page URL when using
useSWRInfinite
?For example, I want to be able to share a paginated page with someone and persist the page size, also when page size changes I want to update URL.
With Next.js I can do something like this:
but this will trigger two renders, so I want to do just a route change and trigger
useSWRInfinite
load.Is this possible?
I can do it like this but it will also trigger two renders.
The thing gets more complicated if we add more query string params, for example,
sort
or multiplefilters
.Maybe I'm doing something wrong here, but not sure what, so please help 🙏
Thx!
Beta Was this translation helpful? Give feedback.
All reactions