Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly add children to InertiaHeadProps type definition #1315

Closed
wants to merge 1 commit into from

Conversation

aviemet
Copy link

@aviemet aviemet commented Oct 12, 2022

The current type definition for the Head component relies on React.FC, which as of React version 18 does not implicitly include the children prop. This results in typescript errors when using the Head component with children as in the example on the Inertia docs site.

@reinink
Copy link
Member

reinink commented Jan 17, 2023

Hey now that the React adapter has been converted to TypeScript we no longer have a types file like this. If this is still an issue with the type definitions in the updated adapter, feel free to submit a PR to correct that. Thanks! 🙏

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