Comments (4)
Yeah i think in mutations we still would want to interact with the values of our data directly rather tucked away in results. And checking for this data should be best practice regardless if result existed or not.
from react-apollo.
@abhiaiyer91 PR #31
from react-apollo.
@abhiaiyer91 💯 go for it! Looks great!
from react-apollo.
When you do it, will you add a warning about key collision if someone uses loading
or errors
as the prop key?
And let's do the same for mutations. This will remove the ability to check if the result is null
fwiw, is that an issue? I guess you would end up checking if your queries keys are there? if (postsData.posts) return null;
from react-apollo.
Related Issues (20)
- Cannot find module error 'apollo-client' after installing @apollo/react-testing inside a test
- useSubscription doesn't work for new windows
- Refetch or re-using lazy query make data incomplete.
- MockedProvider HOT 1
- useLazyQuery executed multiple times HOT 1
- FetchPolicy 'network-only' and 'no-cache' return cached value in Apollo Client v3 HOT 1
- Creating npm module that uses <Query> component without instantiating <ApolloProvider> in the module
- MockedProvider mocking `null` data HOT 1
- Can't perform state update on an unmounted component
- MockedProvider not working correctly HOT 1
- version 3.1.4 (and 3.1.5) breaks addMocksToSchema from @graphql-tools/mock
- [v3] Local state management
- Release notes
- Query with errorPolicy "all" cannot effectively use onError, onCompleted HOT 1
- @apollo/react-hooks changelog
- Breaking change in 3.1.5 in `useLazyQuery` HOT 1
- when status code is 403, client.query => graphqlError, graphql hoc => networkError HOT 2
- useQuery returning undefined
- Errors that occur in refetchQueries cannot be caught HOT 1
- useQuery with onCompleted: infinite loop.
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 react-apollo.