dozoisch / dozoisch/react-google-recaptcha
Captcha is rendered just once on React 18 in concurrent mode
Open
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
Captcha component is rendered just once in all application. It's not rendered in other component or conditionally. You can find issue example on [CodeSandbox](https://codesandbox.io/s/wizardly-water-xfmn4n?file=/src/App.js). Just empty `div` is rendered for subsequent captcha elements.
This issue relates to the concurrent mode introduced in React 18. It doesn't work as expected if app is wrapped in `StrictMode` on React 18 which enables concurrent mode.
react version: 18.2.0
react-google-recaptcha version: 2.1.0
react-async-script version: 1.2.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.