arco-design / arco-design-mobile

React mobile UI components library based on Arco Design
https://arco.design/mobile/react/arco-design/pc/#/
MIT License
415 stars 77 forks source link

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 limingxxoo opened 9 months ago

limingxxoo commented 9 months ago

Basic Info

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 commented 9 months ago

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

limingxxoo commented 9 months ago

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

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

TinaPeach commented 8 months ago

@limingxxoo 这个问题已复现并修复,本周发个正式版~ https://github.com/arco-design/arco-design-mobile/pull/231

TinaPeach commented 8 months ago

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