Replies: 1 comment 1 reply
-
It's a design choice, perhaps you want to move hook out from the Form component and then you will have access at the parent level and pass all methods to the Form as props. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Smart How can I pass methods in form to a parent component. I'm sending it with the props method, but this time the formstate issubmitting doesn't work quite right.
While using the <Form component as in the image, I defined a method called onLoad. I send hook form methods as parameters to this method during the useEffect component loading phase from within the form component itself. But when I submit the form afterwards, the isSubmitting value or other values still come as the old value. When I remove Smartform and use it with normal basic form flow, there is no problem. How do you think I can solve this with the best method?
The page where I'm using the form component

Smart Form Component

Beta Was this translation helpful? Give feedback.
All reactions