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
withForm
HOC, the render function'sprops
type is wrapped withReact.PropsWithChildren
type to implicitly add thechildren
prop (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.AppField
component).Would it be possible to redefine the
children
prop type used by the render function ofwithForm
to match thechildren
property passed inprops
if it is provided?Beta Was this translation helpful? Give feedback.
All reactions