react-apollo-hooks
react-apollo-hooks copied to clipboard
Use Apollo Client as React hooks
Hey, could you please add `subscribeToMore` ? It's very useful (i.e. reduces a lot of boilerplate code) when combined with `buildSubscription` from AWS AppSync SDK (see example [here](https://medium.com/open-graphql/save-hundreds-of-lines-of-code-in-your-next-graphql-app-with-this-one-weird-trick-3bef9ef0d45a) ) Unfortunately,...
Could you help me with this? I am getting error from my server. `error` in `subscriptionData` object is undefined but error property from userSubscription result is not empty. Why? ```...
Related to #127. As described in https://www.apollographql.com/docs/react/essentials/queries#props, the `data` object is either the actual query result, or the empty object `{}` when the data is not (yet) available. The type...
I have a weird issue using the `useQuery` with the `cache-and-network` fetch policy. The `loading` value alternates perfectly between true and false every time the query remounts. **Edit** : It...
Steps to reproduce: 1. Make a successful request 2. Take graphql server offline 3. Make a new request 4. We get an error now. 5. Take graphql server online 6....
When setting new variables using `useQuery`, the `networkStatus` is always `1` (`loading`). This is not the case with the `Query` component which returns `2` (`setVariables`). Example with `useQuery`: https://codesandbox.io/s/ox93pjm0w5 Example...
After upgrading to React 16.8.1 ([email protected]), tests throw warnings whenever we use `waitForNextTick` with Promise and setTimeout, which is everywhere when we need to wait for a component to rerender...
I have a pie chart with a legend. When a legend label is clicked the corresponding pie slice gets a highlight color, and so does the legend label itself. This...
Were you planning on or Would you object to somebody taking this repo and trying to contribute this back to react-apollo? I love what you've started here, and I want...