Currently we have partially improved cache updates to support a pagination container. For the most part, it works, however, we run into issues when trying to apply optimistic responses.
The issue is that the root query is not saved to the optimistic data. This poses a challenge on how to display optimistic data when the client is offline.
This is a snapshot of the cache for non-paginated queries:
And a snapshot of the cache with pagination enabled:
This is not a trivial fix as the pagination requires filter variables and this query cannot be cached.
Bug Report
Currently we have partially improved cache updates to support a pagination container. For the most part, it works, however, we run into issues when trying to apply optimistic responses.
The issue is that the root query is not saved to the optimistic data. This poses a challenge on how to display optimistic data when the client is offline.
This is a snapshot of the cache for non-paginated queries:
And a snapshot of the cache with pagination enabled:
This is not a trivial fix as the pagination requires filter variables and this query cannot be cached.