profile
viewpoint

Ask questionsMockedProvider does not return data when fetchPolicy is set to "cache-and-network"

MockedProvider does not return data when fetchPolicy is set to cache-and-network. When removing the fetchPolicy part from my graphql call, the test data are returned.

Version

  • apollo-client@<1.1.2r>
  • react-apollo@<1.4.2>
apollographql/react-apollo

Answer questions kpruden

Any way to get this issue re-opened? I'm seeing it too when using fetchPolicy: cache-only

useful!
source:https://uonfu.com/
Github User Rank List