We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行 pnpm i pnpm dev
访问 http://localhost:3000/web3
报错 Error: No QueryClient set, use QueryClientProvider to set one
The text was updated successfully, but these errors were encountered:
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; const queryClient = new QueryClient(); <QueryClientProvider client={queryClient}> <WagmiWeb3ConfigProvider config={config} wallets={[MetaMask()]} chains={[ScrollSepolia]}> ... </QueryClientProvider>
这样即可。
Sorry, something went wrong.
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; const queryClient = new QueryClient(); <QueryClientProvider client={queryClient}> <WagmiWeb3ConfigProvider config={config} wallets={[MetaMask()]} chains={[ScrollSepolia]}> ... </QueryClientProvider> 这样即可。
WagmiWeb3ConfigProvider 里面已经设置了 QueryClientProvider,按道理不需要这样。试试 pnpm i @tanstack/react-query --save 看看能不能解决。
pnpm i @tanstack/react-query --save
No branches or pull requests
运行
pnpm i
pnpm dev
访问
http://localhost:3000/web3
报错
Error: No QueryClient set, use QueryClientProvider to set one
The text was updated successfully, but these errors were encountered: