File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/connect-react/src/hooks Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,9 @@ 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
368371 setPropsNeedConfiguring ( _propsNeedConfiguring )
369372 }
370373
@@ -373,6 +376,7 @@ export const FormContextProvider = <T extends ConfigurableProps>({
373376 fields [ field . prop . name ] = field
374377 return fields
375378 } ) ;
379+ checkPropsNeedConfiguring ( )
376380 } ;
377381
378382 // console.log("***", configurableProps, configuredProps)
You can’t perform that action at this time.
0 commit comments