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

fix: null detail error for native events #31375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ishdril
Copy link

@Ishdril Ishdril commented Oct 28, 2024

Summary

Our application throws errors in production, and we've located the problem at the same source as issue #24989. This PR avoids null values for nativeEvent.detail, preventing the error.

How did you test this change?

I don't see an easy way to test the change and couldn't set up unit tests for the react-dom-bindings package. Any help on this matter would be much appreciated.

Our application throws errors in production and we've located the problem to the same source as issue [24989](facebook#24989). This PR avoids null values for nativeEvent.detail, preventing the error.
Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 11:07am

@Ishdril
Copy link
Author

Ishdril commented Nov 7, 2024

@gaearon @trueadm, I see that you were the last ones to work on this code. I would appreciate your review to ensure this change doesn't break anything. 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants