Allow developers to override children prop type in render function of withForm #1694
              
                Unanswered
              
          
                  
                    
                      christopherschroer
                    
                  
                
                  asked this question in
                Ideas
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
In the
withFormHOC, the render function'spropstype is wrapped withReact.PropsWithChildrentype to implicitly add thechildrenprop (for React 17 users, I assume). Unfortunately, this prevents developers from properly redefining the children prop to allow passing of a separate render function as a child (like in theform.AppFieldcomponent).Would it be possible to redefine the
childrenprop type used by the render function ofwithFormto match thechildrenproperty passed inpropsif it is provided?Beta Was this translation helpful? Give feedback.
All reactions