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

Log uncaught errors for React 19 #809

Conversation

craigspaeth
Copy link
Contributor

@craigspaeth craigspaeth commented Aug 10, 2024

I'm working on an implementation of React Server Components and I was happy to see this PR merged migrating to the new React 19 react-reconciler API. This mostly fixed my issues but I noticed errors were getting swallowed (with a onUncaughtError is undefined). This is because there's a new ReactFiberReconciler.createContainer signature with more error handling options. This PR fixes that for me by passing console.error into those options.

I'm not sure what your preferred solve for this would be but I'd be happy to take guidance and update this PR with tests to implement it.

Thank you for maintaining such a nice library!

@lavrton lavrton merged commit 8ec91f1 into konvajs:master Aug 12, 2024
1 check failed
@lavrton
Copy link
Member

lavrton commented Aug 12, 2024

Looks good to me. Thanks. Released as beta tag version 19.0.0-1. Please try it.

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

Successfully merging this pull request may close these issues.

2 participants