Closed MargaretKrutikova closed 5 years ago
Oh this is just amazing! Thanks @MargaretKrutikova will take a good look soon
Thank you! 😃
Thanks a lot again @MargaretKrutikova ! Will be releasing this soon
As you are contributing a lot @MargaretKrutikova I just added you as a collaborator to the repo!
Wow, thanks, that's really cool! 😃
Release under v2.6.0
This PR adds
fetchPolicy
foruseQuery
, here is the source code forfetchPolicy
option inapollo-client
. I have also cleaned up the example with cache and removed some unnecessary raw JS and wrote some comments. I got a bit too carried away and wrote a bit of a too extensive explanation in the README, I can remove it if it is too much 😀I felt like there are just too many caveats with updating
apollo
cache and other people are stumbling onto it too. The reasons are, first of all, that graphql response is parsed and there is no serialisation mechanism to transform the data back to the JS format (that have to be in cache), and second, the good ol'__typename
that needs to be in cache but is not accessible in the reason code 🙃