![Cannot use a hook (like useQuery) inside a function component that will be rendered in a class component. [ERROR: Object(...) is not a function] · Issue #842 · TanStack/query · GitHub Cannot use a hook (like useQuery) inside a function component that will be rendered in a class component. [ERROR: Object(...) is not a function] · Issue #842 · TanStack/query · GitHub](https://user-images.githubusercontent.com/34867523/89596166-7d402700-d824-11ea-9525-af64a47b25e5.png)
Cannot use a hook (like useQuery) inside a function component that will be rendered in a class component. [ERROR: Object(...) is not a function] · Issue #842 · TanStack/query · GitHub
![Apollo Client React Hooks with Drupal GraphQL - useQuery in Client, part 2 | Drupov - Drupal and React.js developer in Vienna Apollo Client React Hooks with Drupal GraphQL - useQuery in Client, part 2 | Drupov - Drupal and React.js developer in Vienna](https://www.drupov.com/sites/default/files/styles/content/public/2019-09/apollo-client-react-hooks-with-drupal-graphql_0.jpg?itok=Z6Ryv3SK)
Apollo Client React Hooks with Drupal GraphQL - useQuery in Client, part 2 | Drupov - Drupal and React.js developer in Vienna
![useQuery () hook from '@apollo/client' returns undefined . The query returns data in graphql console, any idea what may be wrong? Help appreciated ! : r/graphql useQuery () hook from '@apollo/client' returns undefined . The query returns data in graphql console, any idea what may be wrong? Help appreciated ! : r/graphql](https://i.redd.it/usequery-hook-from-returns-undefined-the-query-returns-data-v0-n3frjz9xqsaa1.jpg?width=1280&format=pjpg&auto=webp&s=780c524323f9d1f2793f3655cc67214db0f3a970)