-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
fix: fix NoQueryClient error #4
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -11,6 +11,7 @@ | |||
"dependencies": { | |||
"@ant-design/web3": "^1.4.3", | |||
"@ant-design/web3-wagmi": "^2.2.2", | |||
"@tanstack/react-query": "^5.37.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
绑定一个具体的请求库不是一个好的方式。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请问怎么处理更好呢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3
看到有人提issue,不会用这个demo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ant-design/web3-wagmi
peerDependencies 依赖了 wagmi,wagmi peerDependencies 依赖了 @tanstack/react-query
,所以 @ant-design/web3-wagmi
也 peerDependencies 依赖了 @tanstack/react-query
。所以这里加这个应该是合理的。
</Connector> | ||
<CallTest /> | ||
</WagmiWeb3ConfigProvider> | ||
<QueryClientProvider client={queryClient}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
但是这个地方应该就不用加这个了,WagmiWeb3ConfigProvider 里面默认会加
No description provided.