Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 726 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 726 Bytes

Apollo cache issue example

Installation

yarn

Run dev

yarn dev

Open the dev server which is served at: http://localhost:3002

Demostration

  • Once loaded, the page will initialize the Apollo client with InMemoryCache cache.
  • On mount the App component will use the useQuery hook with the query getPageQuery, which will query for page panel data.
  • When data is fetched it will be printed on to the page.
  • Compare the data on the page (or look inside the client cache in the inspector) with the data that we receive over the network.

The issue

The data received over the network and the data we get from the Apollo cache/response does not align, data is missing from Apollo.