Skip to content

Issue with hot reload #12

@ametr1ne

Description

@ametr1ne

I'm using captcha with fallback.
The application is wrapped in a provider:
<GoogleReCaptchaProvider type="v3" siteKey={siteKeyV3}> {children}</GoogleReCaptchaProvider>
If there is an error with v3, a checkbox is rendered:
<GoogleReCaptchaCheckbox siteKey={siteKeyV2} onChange={handleCaptchav2Change} />
Everything is fine when loading the application, but if a hot reload has occurred, there are errors in the console:

Image

I'm using Vite. Perhaps the problem is that the SiteKey is passed to the div somewhere as an attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions