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) - prevent crash with nullish ref #1657

Merged
merged 5 commits into from
May 30, 2019

Conversation

JoviDeCroock
Copy link
Member

Fixes: #1656

Apparently some libraries pass in null as a ref until one is available. Our approach would throw in this scenario

@coveralls
Copy link

coveralls commented May 29, 2019

Coverage Status

Coverage decreased (-1.7%) to 98.258% when pulling c37db9e on fix/useImperativeHandleCrash into a5b855c on master.

hooks/src/index.js Outdated Show resolved Hide resolved
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.

LGTM 🎉 With the small nit @cristianbote mentioned fixed, it's ready to go in 🙂 👍

Copy link
Member

@cristianbote cristianbote left a comment

Choose a reason for hiding this comment

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

Awesome stuff @JoviDeCroock

@cristianbote cristianbote merged commit 8ccbd40 into master May 30, 2019
@cristianbote cristianbote deleted the fix/useImperativeHandleCrash branch May 30, 2019 10:37
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.

react-spring useImperativeHandle problem - Preact X
4 participants