Modal / Dialog and React 18 Strict Mode Compatibility #3602
-
Hi, I'm attempting to use the Dialog component for a technical test that Adobe have asked me to complete. While attempting to use the Dialog component with React 18 I receive this message:
This issue has been raised before #1135 but I can't find a solution. I could remove StrictMode or revert to React 17 but as it's a technical test this might seem like a hack rather than a solution. Does anyone know of a fix for this issue? Many Thanks Tim |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
React Spectrum doesn't currently support React Strict Mode yet, so I would suggest removing Strict Mode from your application. I don't think there is a workaround, and I think that is better than downgrading React. |
Beta Was this translation helpful? Give feedback.
React Spectrum doesn't currently support React Strict Mode yet, so I would suggest removing Strict Mode from your application. I don't think there is a workaround, and I think that is better than downgrading React.