We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50cbcd3 commit c4ed5fbCopy full SHA for c4ed5fb
src/index.js
@@ -83,16 +83,15 @@ class HCaptcha extends React.Component {
83
const hcaptcha = this._hcaptcha;
84
const captchaId = this.captchaId;
85
86
+ this._cancelPendingExecute('react-component-unmounted');
87
+
88
if (!this.isReady()) {
- this._cancelPendingExecute('react-component-unmounted');
89
return;
90
}
91
92
// Reset any stored variables / timers when unmounting
93
hcaptcha.reset(captchaId);
94
hcaptcha.remove(captchaId);
-
95
96
97
98
shouldComponentUpdate(nextProps, nextState) {
0 commit comments