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

Match useErrorBoundary type with componentDidCatch #2332

Merged
merged 1 commit into from Feb 12, 2020
Merged

Match useErrorBoundary type with componentDidCatch #2332

merged 1 commit into from Feb 12, 2020

Conversation

intrnl
Copy link
Contributor

@intrnl intrnl commented Feb 11, 2020

Something I had forgotten when doing the previous pull request, useErrorBoundary unexpectedly returned string type even though componentDidCatch returns an explicit any. This pull request should address that.

useErrorBoundary returned a string type while componentDidCatch returned an explicit any type
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.792% when pulling 906bb58 on intrnl:patch-2 into 76f942f on preactjs:master.

Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

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.

None yet

4 participants