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
- Access the "Dynamic Pagination" page";
- 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;
- Click an entry from the first page;
- Delete the entry;
- 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.