Skip to content
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

Bug: Context object becomes undefined while handling an error in ErrorBoundary #29024

Open
vporton opened this issue May 8, 2024 · 0 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@vporton
Copy link

vporton commented May 8, 2024

React version: 18.2.0

Steps To Reproduce

  1. Clone https://github.com/vporton/react-undef-context
  2. yarn && npm start
  3. Click the button and watch console errors. (All of the sudden, a context object becomes undefined.)

Link to code example:

https://github.com/vporton/react-undef-context

The current behavior

In browser console:

Uncaught TypeError: Cannot set properties of undefined (setting 'hasError')

The expected behavior

Should display the error TEST EXCEPTION in browser window in red font.

@vporton vporton added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant