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 onLoad race condition #100

Merged
merged 3 commits into from
Nov 4, 2021
Merged

Fix onLoad race condition #100

merged 3 commits into from
Nov 4, 2021

Conversation

brdlyptrs
Copy link
Collaborator

Calling hCaptchaRef.current.execute when onLoad callback invokes throws error as hCaptcha client is not setup just yet. The call to render the hCaptcha client takes place right after the onLoad callback is called. This PR is meant to fix this issue, and may be related to what this PR is trying to solve.

@brdlyptrs brdlyptrs self-assigned this Nov 4, 2021
@e271828-
Copy link
Contributor

e271828- commented Nov 4, 2021

@brdlyptrs let's ship this as 1.0 next week if everything looks good in prod + user reports.

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