-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
React 18 - Internal React error if throwing on hook cleanup function. #22650
Comments
I’m also experiencing this with other React versions on React Native, as well as with React 17.0.x production builds (but not dev builds) on web. See the above-linked RN issue. |
@gaearon If anyone has not yet picked this yet, may I give it a shot? |
This warning comes up a lot after I've upgraded to RN 0.67.1. In my case the causing
|
Still reproduces with 18.1: https://codesandbox.io/s/test-renderer-throwing-in-cleanup-causes-internal-react-error-novhj2 |
Good day everyone, any update / solution on that ? |
@ugglr If you're still importing SafeAreaView from react-native, try importing it from react-native-safe-area-context. |
Getting the same issue, ERROR Warning: Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer. Does anyone have a solution for the same? |
Running the following test:
I'll get the following error message:
The test will pass but considering the nature of the message and that it differs from latest I thought reporting it might be a good idea. Repo if you need it /~https://github.com/andrew-w-ross/react-18-unmount-error
The text was updated successfully, but these errors were encountered: