Skip to content

Conversation

@pascalbaljet
Copy link
Member

This PR allows you to use the data-inertia attribute instead of the inertia attribute on the children of the <Head> component.

Moving away from inertia to data-inertia was proposed first in #2438, but that would be a breaking change for users depending on the inertia attribute. So this PR uses the new configuration system introduced in #2655 so you can opt-in to it with the future.useDataInertiaHeadAttributer flag.

We'll probably enable this by default in the next major release.

createInertiaApp({
  // resolve, setup, etc.
  defaults: {
    future: {
      useDataInertiaHeadAttribute: true,
    },
  },
})

@pascalbaljet pascalbaljet merged commit e02ceda into master Oct 28, 2025
12 checks passed
@pascalbaljet pascalbaljet deleted the use-data-set-in-header-manager branch October 28, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants