Skip to content

Commit 27cfd7a

Browse files
committed
Removed console.log
1 parent b2a9d51 commit 27cfd7a

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

β€Žsrc/lib/client/index.tsβ€Ž

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,6 @@ export function superForm<
395395
value: Parameters<typeof _formData.set>[0],
396396
options: { taint?: boolean } = {}
397397
) => {
398-
console.log(
399-
'πŸš€ ~ file: index.ts:398 ~ Form set:',
400-
value,
401-
taintedFormState,
402-
options
403-
);
404398
if (options.taint !== false && !get(Submitting) && taintedFormState) {
405399
checkTainted(value, taintedFormState);
406400
}
@@ -412,12 +406,6 @@ export function superForm<
412406
options: { taint?: boolean } = {}
413407
) => {
414408
return _formData.update((value) => {
415-
console.log(
416-
'πŸš€ ~ file: index.ts:398 ~ Form update:',
417-
value,
418-
taintedFormState,
419-
options
420-
);
421409
const output = updater(value);
422410
if (
423411
options.taint !== false &&
@@ -436,7 +424,7 @@ export function superForm<
436424

437425
function checkTainted(newObj: unknown, compareAgainst: unknown) {
438426
const paths = comparePaths(newObj, compareAgainst);
439-
console.log('πŸš€ ~ file: index.ts:449 ~ checkTainted ~ paths:', paths);
427+
//console.log('πŸš€ ~ file: index.ts:449 ~ checkTainted ~ paths:', paths);
440428

441429
LastChanges.set(paths);
442430

@@ -648,7 +636,7 @@ export function superForm<
648636
if (!forms.length) error('$page.form (ActionData)');
649637

650638
for (const newForm of forms) {
651-
console.log('πŸš€~ ActionData ~ newForm:', newForm.id);
639+
//console.log('πŸš€~ ActionData ~ newForm:', newForm.id);
652640
if (newForm === form || newForm.id !== formId) continue;
653641

654642
await _update(newForm as Validation<T2, M>, untaint);
@@ -662,7 +650,7 @@ export function superForm<
662650
// It's a page reload, redirect or error/failure,
663651
// so don't trigger any events, just update the data.
664652
for (const newForm of forms) {
665-
console.log('πŸš€ ~ PageData ~ newForm:', newForm.id);
653+
//console.log('πŸš€ ~ PageData ~ newForm:', newForm.id);
666654
if (newForm === form || newForm.id !== formId) continue;
667655

668656
rebind(newForm as Validation<T2, M>, untaint);
@@ -974,7 +962,7 @@ function formEnhance<T extends AnyZodObject, M>(
974962
lastBlur = newChanges;
975963

976964
for (const change of newChanges) {
977-
console.log('πŸš€ ~ file: index.ts:905 ~ BLUR:', change);
965+
//console.log('πŸš€ ~ file: index.ts:905 ~ BLUR:', change);
978966
validateField(
979967
change,
980968
options.validators,
@@ -1006,7 +994,7 @@ function formEnhance<T extends AnyZodObject, M>(
1006994
const hasError = errorNode && errorNode.key in errorNode.parent;
1007995

1008996
if (isTainted && hasError) {
1009-
console.log('πŸš€ ~ file: index.ts:920 ~ INPUT with error:', change);
997+
//console.log('πŸš€ ~ file: index.ts:920 ~ INPUT with error:', change);
1010998
validateField(
1011999
change,
10121000
options.validators,

0 commit comments

Comments
Β (0)