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 Fix: This fix makes the component stop failing silently when user doesn't specify onFail prop #885

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

Conversation

skbergam
Copy link

This way, the default onFail behavior will occur for users who don't specify one (currently, the default behavior of calling console.warn isn't reachable code).

I spent 2 hours trying to figure out why it was silently failing. Had to manually edit the code locally to figure out the issue (my API key had restrictions) but had this PR already been in place it would've taken seconds. Hopefully this helps someone else.

This way, the default onFail behavior will occur for users who don't specify one (currently, the default behavior of calling `console.warn` isn't reachable code).

I spent 2 hours trying to figure out why it was silently failing. Had to manually edit the code locally to figure out the issue (my API key had restrictions) but had this PR already been in place it would've taken seconds. Hopefully this helps someone else.
Copy link

@xgenem xgenem left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

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