Skip to content

Commit 34ca0da

Browse files
committed
Remove checkPropsNeedConfiguring call
1 parent 838b189 commit 34ca0da

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/connect-react/src/hooks/form-context.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,6 @@ export const FormContextProvider = <T extends ConfigurableProps>({
365365
}
366366
}
367367
// propsNeedConfiguring.splice(0, propsNeedConfiguring.length, ..._propsNeedConfiguring)
368-
// For some reason registerField is called in recursive loop if an empty
369-
// propsNeedConfiguring is set to an empty _propsNeedConfiguring
370-
if (!propsNeedConfiguring.length && !_propsNeedConfiguring.length) return
371368
setPropsNeedConfiguring(_propsNeedConfiguring)
372369
}
373370

@@ -376,7 +373,6 @@ export const FormContextProvider = <T extends ConfigurableProps>({
376373
fields[field.prop.name] = field
377374
return fields
378375
});
379-
checkPropsNeedConfiguring()
380376
};
381377

382378
// console.log("***", configurableProps, configuredProps)

0 commit comments

Comments
 (0)