We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c69266 commit 69c10b6Copy full SHA for 69c10b6
src/lib/client/superForm.ts
@@ -1618,7 +1618,7 @@ export function superForm<
1618
? { type: 'success', status, data }
1619
: { type: 'failure', status, data };
1620
1621
- setTimeout(() => validationResponse({ result }, cancelled), 0);
+ setTimeout(() => validationResponse({ result }), 0);
1622
}
1623
1624
function cancel(
@@ -1773,7 +1773,8 @@ export function superForm<
1773
return chunks;
1774
1775
1776
- async function validationResponse(event: ValidationResponse, cancelled = false) {
+ async function validationResponse(event: ValidationResponse) {
1777
+ let cancelled = false;
1778
currentRequest = null;
1779
1780
// Check if an error was thrown in hooks, in which case it has no type.
0 commit comments