Comments (4)
Thankfully I was able to figure this one out pretty quick 🙂. This one is fixed with #11713. I've tried this fix out with a fork of the reproduction and this is working as expected. Expect this to ship with the next patch version 🙂
from apollo-client.
Hey @berzhavycha 👋
Thanks for the report and the reproduction! This is such a weird one. It doesn't look so much like it has to do with the value of the errorPolicy
but rather where its set. I see the reproduction sets errorPolicy
with defaultOptions
. If I comment this out and instead move that error policy to the hook itself, the hook behaves as expected. See my fork of the reproduction to see this working as expected.
I'll dig into this a bit more soon, but looks like for now the workaround would be to set errorPolicy
on the hook itself.
from apollo-client.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
from apollo-client.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.
from apollo-client.
Related Issues (20)
- fetchMore not hitting onError and causing an infinite loop of queries HOT 3
- [Docs] refetchQueries can fetch non active queries HOT 5
- Typescript compilation error in Node context HOT 8
- I try to integrate GraphQL PHP in backend with Apollo client and React in front end) but I get an undefined post response HOT 3
- awaitRefetchQueries to wait for refetch of queries affected by cache eviction after a mutation HOT 5
- ECONNREFUSED Error When Using Apollo Client with NextJS HOT 4
- resetStore can cause to refetch unmounted/inactive queries HOT 11
- GraphQLWsLink doesn't throw ApolloError when network error happens HOT 2
- WebSocket connection to 'ws://localhost:4000/graphql' failed: HOT 3
- useFragment throws an error when a fragment has the @include directive HOT 4
- Deprecate testing utilities introduced in 3.10 in favor of graphql-testing-library HOT 3
- Why does QueryResult not contain extensions but FetchResult does? HOT 4
- MockedResponse variableMatcher shows warning about no more mocked responses for the query HOT 5
- Partial data returned on error after resetting cache HOT 7
- Type error returning `IGNORE` object when using a generic `TypedDocumentNode` mutation HOT 3
- Documentataion: mutaitonHookOptions.ignoreResults requires additional clarification HOT 1
- @apollo/client reactive var state changes are not reflecting across libraries HOT 8
- fetchMore with fetchPolicy: "no-cache" makes two requests HOT 6
- Problem with custom type policy for query caching HOT 19
- App Crash when using ReactNativeFile in apollo upload client to upload file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-client.