You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just as the title suggests could there be a hook to provide similar functionality as withForm? It would be generated by createFormHook, take formOptions as a parameter for type information, and return the form instance by context. Maybe its just me but HOC's seem unnecessary here, but maybe I'm not understanding why this is not possible, or what withForm is providing other than a form instance with correct types.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just as the title suggests could there be a hook to provide similar functionality as
withForm
? It would be generated bycreateFormHook
, takeformOptions
as a parameter for type information, and return the form instance by context. Maybe its just me but HOC's seem unnecessary here, but maybe I'm not understanding why this is not possible, or whatwithForm
is providing other than a form instance with correct types.Beta Was this translation helpful? Give feedback.
All reactions