When using the form system, is it possible that Inertia will only preserve state when errors exist?
Something like..
function submitBid() {
bidForm.post(route("auction.bid.store", { auction }), {
preserveScroll: true,
preserveState: bidForm.hasErrors,
onSuccess: () => {
bidForm.reset();
},
});
}
Mainly because I want it to fetch new data after submission, setting it to false works until an error exists.