hCaptcha / react-hcaptcha

hCaptcha Component Library for ReactJS and Preact
MIT License
367 stars 41 forks source link

NextJS Fast-Refresh Bug #163

Closed zhiyan114 closed 1 year ago

zhiyan114 commented 1 year ago

Hey, for some reason, it seems like NextJS's fast-refresh breaks HCaptcha. Everytime I make code changes, the error pops up. image

Is there a workaround for this without disabling nextjs's fast-refresh?

kdziamura commented 1 year ago

@zhiyan114 a new version of api.js is released. Please check if it helped. No need to update the react-hcaptcha, just try to reproduce the issue. If you see the same message - try to clean your browser cache.

zhiyan114 commented 1 year ago

Great, it seems like the issue is resolved, I'll reopen it if it happens again..