Skip to content

Dynamic Pagination: first page entry deletion #12

@alcar

Description

@alcar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions