Replies: 1 comment 12 replies
-
Hey @vinclou , |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Problem
:Proposal:
Because FormProps is the same as the useMutation it causes lots of hassle, very often I face a situation where I can not precisely map form values to what gets sent to the server, or for some reason don't want to or need to process updates in a particular way, before the submission.
If as a user I can do something like this:
And if I don't want to the default is mapped to subscription updates(it might not work out with TS)
const exp = useForm<Subscription, HttpError, SubscriptionUpdates, IFormSubscriptionUpdates>({...Props})
Then essentially I wouldn't need to use extra hooks, overrides, or other workarounds you could possible come up with to
deal with form values being different from server-sent props.
Let's start with an example.
Beta Was this translation helpful? Give feedback.
All reactions