Skip to content

Commit

Permalink
fix duplicate declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Forfold committed Dec 12, 2019
1 parent 76d6a56 commit a42308e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions web/src/app/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,3 @@ export const GraphQLClientWithErrors = new ApolloClient({
mutate: { awaitRefetchQueries: true, errorPolicy: 'all' },
},
})

// errorPolicy can only be set "globally" but breaks if we enable it for existing
// code. Eventually we should transition everything to expect/handle explicit errors.
export const GraphQLClientWithErrors = new ApolloClient({
link: graphql2Link,
cache,
defaultOptions: {
query: queryOpts,
mutate: { awaitRefetchQueries: true, errorPolicy: 'all' },
},
})

0 comments on commit a42308e

Please sign in to comment.