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

Pagination in React/Apollo doesn't work correctly. #1459

Open
mlshohet opened this issue Dec 23, 2022 · 2 comments
Open

Pagination in React/Apollo doesn't work correctly. #1459

mlshohet opened this issue Dec 23, 2022 · 2 comments

Comments

@mlshohet
Copy link

Followed tutorial exactly, but couldn't get pagination to work. When clicking on "next," it goes to the next page, then when clicked "previous," the links stay the same.

If the page is manually refreshed, it displays the correct number of links in the correct order.

take and skip variables update, but data doesn't. Most likely is that a cache config is needed, probably a custom read function. Tried every which way, but couldn't get it to work.

Just letting you know. Otherwise, love it! Thanks!

@Theosaurus-Rex
Copy link

Popping in to confirm I'm having the same issue unfortunately

@VanPaitin
Copy link

Me too I have this issue. I believe it has something to do with the useQuery cache. This has not been addressed yet

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

3 participants