relayjs / relay-examples

A collection of sample Relay applications
MIT License
1.14k stars 433 forks source link

Question: why does a "store-only" fetchPolicy not work for the data-driven-dependencies example? #240

Open tinleym opened 2 years ago

tinleym commented 2 years ago

Setting the fetchPolicy to "store-only" breaks data fetching in data-driven-dependencies, even though I don't see the fetch coming through on the network tab with "store-or-network".

This surprised me. As far as I can tell, the data requested by the component is coming from the store after it has been primed with the data fetched on the server.

Clearly, I'm missing something. Can anyone explain what?