Closed IanVS closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
react-turnstile | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 31, 2023 1:26pm |
It looks like a preview for the docs is not generated by the vercel bot either.
Hey @IanVS, thanks for contributing!
Can you please add the new script option property into docs/props.mdx
? (at the very end)
Ah, I thought maybe they got pulled from the type definitions automatically. Updated the mdx.
Thank you!
Thanks for the quick review/merge/release!
Closes https://github.com/marsidev/react-turnstile/issues/40
This adds an
onError
option toscriptOptions
, which adds anonerror
to the script that is injected into the DOM, so that devs can handle failures to load the Cloudflare script, such as when Cloudflare workers, turnstile, and pages recently were down for 25 minutes.I wasn't able to test the docs locally, since pages.dev has an issue with local previews, but I think it'll just get picked up automatically?