Replies: 1 comment 4 replies
-
Are you using |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was messing around with react 18 and using React.StrictMode to see if there is anything that requires our attention.
And I am encountering the following warning:
(source)
When either building for production or removing the
<React.StrictMode />
the warning is gone so I am assuming this is something to do with the double calling of mount/unmount in react 18 strictmode https://reactjs.org/docs/strict-mode.html#ensuring-reusable-stateI also noticed there is a test that tests this specific warning:
https://github.com/mobxjs/mobx/blob/78d1aa2362b4dc5d521518688d6ac7e2d4f7ad3a/packages/mobx-react/__tests__/observer.test.tsx#L873~L894
I am however a bit confused since this test replaces the render method with a new one and in our codebase we are doing nothing similiar but are still receiving this warning.
Is this warning something to be concerned about? And what exactly does it say?
Beta Was this translation helpful? Give feedback.
All reactions