Closed kkatsi closed 4 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
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 | Jul 10, 2024 7:27pm |
For some reason, the e2e tests are failing
@marsidev Do you think that this is related to the changes? They also fail locally, when i try to run them.
I don't think so. They're also failing in the main branch locally
Thanks! @kkatsi
This PR aims to fix #75
I discovered that when the widget was unmounted and then remounted without using the
reset()
function, thewidgetSolved
state reference was not reset tofalse
. This issue arises in cases where the widget's dynamic cData changes, causing a reset or re-render of the widget. IfwidgetSolved.current
is set totrue
, it breaks the getResultPromise() function, resulting in a "No response received" error.The issue has been fixed by setting widgetSolved.current back to false on the widget's unmount.