react-apollo-hooks
react-apollo-hooks copied to clipboard
Use Apollo Client as React hooks
So when you call mutations in Graphql, you can ask for some return data. How do you do that with this library? I see no way to get what the...
This query: https://github.com/barbalex/vermehrung/blob/0a7bc911e9d5e5dcd8493e4c5e091833802e99d6/src/components/TreeContainer/index.js#L41 works fine in v0.4.5. It breaks in v0.5.0 with this error, before the query is run: ``` index.js:112 Uncaught TypeError: Cannot convert undefined or null to object...
`react-apollo` exports `react-apollo/test-utils#MockedProvider`, I can't find anything similar for react-apollo-hooks. I could use ``` jest.mock('react-apollo-hooks', () => ({ __esModule: true, useQuery: () => ({ data: mockedData, loading: false }), })...
Something like `fetchMore`: https://www.apollographql.com/docs/react/features/pagination/ Thanks a lot!
updated to use latest libraries/versions
WIth the Mutation component from Apollo. you can do something like this: ```jsx const AddTodo = () => { let input; return ( {(addTodo, { data }) => ( {...
I'm confused how the SSR example would work without using `apolloClient.extract()` to send the cache state to the client. And because `getMarkupFromTree` exerts more control than `getDataFromTree`, it seems impossible...
instead of returning an object from `useQuery`/`useSubscription`, (given that the number of parameters and their function do not change) returning a tuple(array) would allow users to de-structure the variable names...
can we do file uploads with useMutation?
The [codesandox](https://github.com/trojanowski/react-apollo-hooks#example) demo breaks when you update react-apollo-hooks to latest. Per the release notes on https://github.com/trojanowski/react-apollo-hooks/releases/tag/v0.4.0 citing https://github.com/trojanowski/react-apollo-hooks/issues/69, how would you set/update the suspense value to true if that is...