Skip to content

Commit 6e167e7

Browse files
committed
chore: clean up console
1 parent b6dc8cf commit 6e167e7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/useForm.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,8 @@ export class FormStore {
448448
};
449449

450450
private getFields = (): InternalFieldData[] => {
451-
console.time('getFieldEntities');
452451
const entities = this.getFieldEntities(true);
453-
console.timeEnd('getFieldEntities');
454452

455-
console.time('map fields');
456453
const fields = entities.map(
457454
(field: FieldEntity): InternalFieldData => {
458455
const namePath = field.getNamePath();
@@ -470,7 +467,6 @@ export class FormStore {
470467
return fieldData;
471468
},
472469
);
473-
console.timeEnd('map fields');
474470

475471
return fields;
476472
};
@@ -522,11 +518,9 @@ export class FormStore {
522518
...info,
523519
store: this.getFieldsValue(true),
524520
};
525-
console.time(`notify ${info.type}`);
526521
this.getFieldEntities().forEach(({ onStoreChange }) => {
527522
onStoreChange(prevStore, namePathList, mergedInfo);
528523
});
529-
console.timeEnd(`notify ${info.type}`);
530524
} else {
531525
this.forceRootUpdate();
532526
}
@@ -626,9 +620,7 @@ export class FormStore {
626620
const { onFieldsChange } = this.callbacks;
627621

628622
if (onFieldsChange) {
629-
console.time('getFields');
630623
const fields = this.getFields();
631-
console.timeEnd('getFields');
632624

633625
/**
634626
* Fill errors since `fields` may be replaced by controlled fields

0 commit comments

Comments
 (0)