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

Dynamic Pagination: first page entry deletion #12

Open
alcar opened this issue Mar 13, 2019 · 0 comments
Open

Dynamic Pagination: first page entry deletion #12

alcar opened this issue Mar 13, 2019 · 0 comments

Comments

@alcar
Copy link
Contributor

alcar commented Mar 13, 2019

Problem

Deleting an entry from the first page should trigger some kind of refetch or updateQueries, so that there are still 5 entries being displayed instead of 4.

How to reproduce

  1. Access the "Dynamic Pagination" page";
  2. Without loading any more entries, make sure that the total amount of entries displayed in the bottom right corner of the table is bigger than 5;
  3. Click an entry from the first page;
  4. Delete the entry;
  5. Once the app redirects you back to the entry list, notice that there are only 4 entries being displayed.

Possible solution

Invalidating the listBooks query's cache.

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