Published on May 25, 2021
  • Fix InertiaLink component to not change the URL path (#556).
  • Add isDirty property to the form helper (#660).
  • Reset form helper on visit exception (#682).
  • Fix "Can't perform a React state update on an unmounted component" error in form helper (#680).
  • Fix bug with using custom onCancelToken callbacks in form helper (#645).
  • Update adapter to be SSR compatible.
  • Update TypeScript definitions (#677).
  • Add new InertiaHead component (#688).
  • Make page props available to persistent layouts as props (#602).
  • Remove transformProps() and resolveErrors() (#693).

This is a breaking change that requires also updating to inertia@0.9.0.

New Inertia head component

This release adds a new InertiaHead component, intended to make working with the document <head> easier. This is a first-class alternative to libraries like React Helmet. It works both in the browser, and also when server-side rendering (SSR).

To use it, add the InertiaHead component to your pages:

import { InertiaHead } from '@inertiajs/inertia-react'

  <title>Your page title</title>
  <meta name="description" content="Your page description" />

See the title & meta page for full documentation.