https://www.apollographql.com/docs/react/caching/cache-interaction/ ?
how to write to get this data?
Inside the component you want to access the cache?
by using this: const client = useApolloClient();
Then what's difficult?
Just write the query and use client.readQuery method to get data from cache
I copy pasted the exact query I used for fetching the server but got error I dont know how to write query in the readQuery:(
Обсуждают сегодня