Add form.patchDirty
that will make PATCH request with only changed (dirty) data
#1278
albertpratomo
started this conversation 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently
form.patch
will send all data that is insideform
.I propose Inertia adds
form.patchDirty
that will only send changed (dirty) data.In
useForm
Inertia already tracks thedefaults
data, which means Inertia can also compute thechanged
data.Would be QoL improvement so that developer doesn't have to compute this data in
form.transform
all the time.Beta Was this translation helpful? Give feedback.
All reactions