Overview
When using Next.js with cacheComponents enabled in next.config.ts - hCaptcha throws unknown error.
const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,
+ cacheComponents: true
};
Steps to reproduce
- Run feenko/hcaptcha-next-cache-components
- Visit index page and once hCaptcha container finishes loading click "Go to secondary page"
- Once on secondary page wait for hCaptcha container to finish loading again and click "Go to primary page"
- You should see following error:
