Closed Viicos closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 63.88%. Comparing base (
e6a0880
) to head (74bf9da
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes open-formulieren/open-forms#4082
A race condition is happening and the
useAsync
hook is being called three times, andonFormStart
would be called every time asonFormStartCalledRef
wasn't set totrue
by the first called in time.This only happens when using a login button, as the
useAync
hook is watching on the_start
query parameter, and a change to this query parameter seems to trigger the hook three times for some reason.(This doesn't happen with the "Begin form" button as in this case, the
onFormStart
function is called directly).