I have one Query component that retrieves data from a GraphQL server and everything works great.
There's a stateless child component I'm currently passing props to, and I would like to make it propless by setting it to read data from the local Apollo cache (the child component can never be loaded prior to the parent component).
I'm getting an error though. I understand from the docs that the readQuery method fails if there's nothing in the cache, but that's what confuses me: the data should be in the cache as it's loaded before in the parent component. Or is it not?
Here's the source code:
idfields defined ... - xadm