inertia-react@v0.5.5

Published on March 26, 2021
  • Added new form helper options (#575).
  • Updated typescript definition (#526, #555).

Form helper options

The form helper now accepts a second "options" argument. This lets you set a form key, needed if there are multiple forms on the page. You can also disable the automatic remember behaviour by setting the remember option to false.

const form = useForm({
  email: null,
  password: null,
}, {
  key: 'login',
  remember: false,
})