Skip to content

Commit

Permalink
chore: rm redundant console
Browse files Browse the repository at this point in the history
  • Loading branch information
Heising committed May 16, 2024
1 parent 150f855 commit 563ba98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/form/hooks/useWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function useWatch(name: NamePath, form: InternalFormInstance) {
const allFieldsValue = form.getFieldsValue?.(true);
const newValue = get(allFieldsValue, name);
const nextValueStr = JSON.stringify(newValue);
console.log('first', valueStrRef.current !== nextValueStr);

// Compare stringify in case it's nest object
if (valueStrRef.current !== nextValueStr) {
valueStrRef.current = nextValueStr;
Expand Down

0 comments on commit 563ba98

Please sign in to comment.