-
Notifications
You must be signed in to change notification settings - Fork 143
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove timeout removal, remove component unmount #196
Conversation
Yep will publish today |
Published from this branch 3.0.0-alpha.1 |
@dozoisch Thank you thank you! I was able to validate that #171 appears to be fixed using the example the author created I also validated against our two other codesandbox examples that this change doesn't break anything
Curious about your thoughts on the release. I'm starting to think that this change is actually backwards compatible, maybe a major is too conservative? Maybe only a minor and if it does break we can hotfix with a bug fix? |
If you are releasing a new major, the react dependency could be bumped to 16.14.0 too. That would enable the use of the new jsx transform |
@hartzis sorry for delay.. im tempted to still go for major given the change underneath and take the opportunity to do other major bumps like that react bump |
Hello, this PR seems to have solved an issue I'm currently experiencing. Currently I have to proceed in this way to see the recaptcha badge displayed const formReCAPTCHA = () => {
const [load, setLoad] = useState(false);
useEffect(() => {
setTimeout(() => {
setLoad(true);
}, 5000);
}, []);
return (
<form>
{load &&
<ReCAPTCHA
ref={recaptchaRef}
size="invisible"
sitekey="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
/>
}
</form>
);
} Thank you :) |
@romainleduc for the time being you can set your package.json version to 3.0.0-alpha.1 to have this fix! |
Attempt to fix #171.
Additionally:
reset()
call on unmount as it may be the root cause of uncaught (in promise) timeout聽#103.reset()
may also not have been necessaryref
div
for eachexplicitRender
which is probably all that is sufficient for the fixforceReset
method that callsgrecaptcha.reset()
without needing awidgetId
@dozoisch could you possibly publish an alpha/beta of this that I can test?
馃摀 If this does all work and simplifies things it will possibly require a major? 馃