tonilam / solutions

Collection of issues and solutions
0 stars 0 forks source link

Laravel + inertiajs + Vue - submit edit form and redirect back to same form, all data disappeared #2

Open tonilam opened 3 years ago

tonilam commented 3 years ago

When submitting a form using inertia form helper, and the backend controller return Response::back(), the form data will be cleared.

tonilam commented 3 years ago

This issue was caused by Jetstream where it default resetOnSuccess to true, as explained here: https://github.com/inertiajs/inertia/issues/170