-
I have a modal that gets attached inside my which contains my app (wrapped in QueryClientProvider). But I get the following error when that modal gets mounted/attached:
No QueryClient set, use QueryClientProvider to set one |
Beta Was this translation helpful? Give feedback.
Answered by
awmleer
Jun 8, 2022
Replies: 1 comment
-
If you use Modal.show, the content inside it are rendered in another React app, which is created by antd-mobile. So the context here would be isolated. You can directly render |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
awmleer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use Modal.show, the content inside it are rendered in another React app, which is created by antd-mobile. So the context here would be isolated.
You can directly render
<Modal />
in your component and this problem won't exist.