react-apollo-hooks
react-apollo-hooks copied to clipboard
Use Apollo Client as React hooks
Hey, great library. I'm trying to catch mutation errors but it seems none of the callbacks are called. The only way I was able to catch errors is to use...
Hey there, is it possible to use `getMarkupFromTree` with `renderToStream` instead of `renderToString`?
currently returned value both of `useMutation` and `useQuery` calculated every time they called, I'm not really familiar with apollo logics, but I guess this can memoized?, for instance `useMutation` should...
Hi, I'm using `useLazyQuery` for a user lookup for suggestions, so it's important that requests aren't missed. The default behaviour it seems is that requests are ignored if one is...
In `v0.4.5` the following code would load without error: ``` const { data: { subData, moreSubData }, // we want these keys specifically loading, } = useQuery(someQuery); ``` In `v0.5.0`...
If there is no `error` and `loading` is `false`, is it even possible to have undefined `data`? The example given in the Readme is not possible in typescript, because `data`...
Trying to run the following code: ``` const Status: React.FunctionComponent = () => { const { data, errors } = useQuery(STATUS_QUERY, { suspend: false, pollInterval: 2000 }); console.log(data); console.log(errors); if...
Is there any way to abort a useQuery that is in progress? I have a map that queries data based on the bounding coordinates of the current window. Data fetch...
SinglePost C:/Users/Aveesh shetty/Desktop/classsed-graphql-server-master/classsed-graphql-server-master/client/src/pages/SinglePost.js:8 5 | import { Button, Icon,Card,Grid,Image,Label } from 'semantic-ui-react'; 6 | import {AuthContext} from '../context/auth'; 7 | > 8 | function SinglePost(props){ 9 | const { user...
The current API looks like this: ```js const [ scrapeVenuesResult, { error, loading, }, ] = useMutation(SCRAPE_VENUES_MUTATION); ``` This looks neat on its own, but becomes a problem when there...