Edited Default fetching queries for apollo client. **Important**
This commit is contained in:
@@ -54,7 +54,17 @@ class AppContainer extends Component {
|
|||||||
link: ApolloLink.from(middlewares),
|
link: ApolloLink.from(middlewares),
|
||||||
cache,
|
cache,
|
||||||
typeDefs,
|
typeDefs,
|
||||||
resolvers
|
resolvers,
|
||||||
|
defaultOptions: {
|
||||||
|
watchQuery: {
|
||||||
|
fetchPolicy: "cache-and-network",
|
||||||
|
errorPolicy: "ignore"
|
||||||
|
},
|
||||||
|
query: {
|
||||||
|
fetchPolicy: "network-only",
|
||||||
|
errorPolicy: "all"
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
client.writeData({
|
client.writeData({
|
||||||
|
|||||||
Reference in New Issue
Block a user