-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Include component stack to invariants #18315
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 83c372b:
|
1148b62
to
94889f6
Compare
Details of bundled changes.Comparing: 730389b...83c372b react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (stable) |
Details of bundled changes.Comparing: 730389b...83c372b react-dom
Size changes (experimental) |
94889f6
to
83c372b
Compare
I was under the impression that we now tack on a component stack to all errors raised during rendering, in a second message that starts "The above error occurred in the component:". Can you post before and after screenshots of the console? |
@sophiebits Yeah this is most likely not relevant |
It is interesting that in your screenshot the "The above error" message appears before the actual error. Perhaps related to #18101. However, given that the stack trace does show up it probably does make sense to leave the behavior as-is. I'll close the original issue too. Sorry to make you spend time on something that didn't end up getting merged, but thank you for the contribution! |
close #11619