inertia
inertia copied to clipboard
Typescript error when child is added to the Inertia Head component.
Versions:
@inertiajs/inertiaversion: 0.11@inertiajs/inertia-reactversion: 0.8.0
Describe the problem:
A typescript error if a child is added to the Inertia <Head> component.
Steps to reproduce:
import { Head } from '@inertiajs/inertia-react'
...
<Head>
<meta name="description" content="Example description" />
</Head>
Gives the following error:
error TS2559: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & InertiaHeadProps'.
Looks like there's a couple pull requests to fix the issue. I'd recommend merging in this one: https://github.com/inertiajs/inertia/pull/1210