Skip to content
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

Dialog调confirm方法时,传unmountOnExit为false提示警告:Warning: You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it. #230

Open
1 task
limingxxoo opened this issue Feb 17, 2024 · 4 comments

Comments

@limingxxoo
Copy link

Basic Info

  • Package Name And Version: @arco-design/mobile-react@2.30.8

Dialog调confirm方法时,传unmountOnExit为false提示警告:Warning: You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.

传unmountOnExit为true没问题

微信图片_20240217121114

@TinaPeach
Copy link
Collaborator

@limingxxoo 同学,你的react/react-dom版本号发一下呢,看起来是用的react18对吧?

@limingxxoo
Copy link
Author

@limingxxoo 同学,你的react/react-dom版本号发一下呢,看起来是用的react18对吧?

对18,
"react": "^18.2.0",
"react-dom": "^18.2.0",

@TinaPeach
Copy link
Collaborator

TinaPeach commented Feb 22, 2024

@limingxxoo 这个问题已复现并修复,本周发个正式版~ #231

@TinaPeach
Copy link
Collaborator

@arco-design/mobile-react@2.30.9 已发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants