我正在尝试创建一个使用useQuery导出功能的包 然而,我得到了以下错误: Could not find "client" in the context or passed in as an option这甚至是最简单的例子,它只导出useQuery (obvs实际代码做的比这更多) 我知道我的代码没问题,否则就好像我用 import { useQuery } from '@apollo/react-hooks
我是NextJS和GraphQL的新手,我正在使用MERN栈和(NextJS和GraphQL)构建一个应用程序。我只需要澄清一下,我是使用getStaticProps(nextJS)中的查询返回的数据,还是使用useQuery钩子(apollo/Client)返回的数据。fetched the userInfo and we have access to it in [id].tsx component props };在组件本身中,我们可以使用apollo/c