-
Notifications
You must be signed in to change notification settings - Fork 160
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
Support for react 19 #239
Comments
+1 getting a warning too react-helmet-async 2.0.5 |
using it with react 19 and didn't see any issues so far. just complains about dependencies. so +1 |
react 19 have built-in support for metadata tags, see https://react.dev/blog/2024/12/05/react-19#support-for-metadata-tags |
For some reasons it stopped working when I updated to I ended up using React 19 meta tags |
that's not 100% true If you rely on some deduplication behavior that this lib provides, React 19 APIs are not a drop-in replacement. For example if I replaced helmet by React 19 APIs in the Docusaurus framework, we'd end up with duplicate head titles because we rely on "deeper" titles to override default titles defined in parent layout components. There are other things that this library covers that React 19 don't, for example hosting classes / data attributes to the |
@slorber you not needed a library to do "`${defaultTitle} nested title`" templating. Actually this library can only replace parent title without any advanced templating. |
This needs a new release for react 19. Shouldn't require anything but bumping the version in the package.json if there are not any breaking changes in react that impact this package. |
|
If anyone finds it helpful, Docusaurus is now running on my v1.3.0 fork, which allows React 19 as peerDeps: I didn't fork from v2 since I'm not sure what the breaking changes are. We'll upgrade the fork in the future. Note: with React 19, I wonder if it's not time to create a new lib that would only be React 19+ and only implement the missing functionalities. |
React 19 doesn't seem to handle even the most basic of use cases. We do not have any overriding of parent components <title> by child components <title>. However our root HTML file (index.html that loads React) does contain a default <title> tag so that the user sees a title while React is loading. Even in this case, the <title> tag gets duplicated by React 19 once the component loads, and the browser tends to keep the first one, so it is not really usable in practice and Helmet remains very necessary. |
I see 4 issues here, asking for React 19 support, but no PRs. |
No description provided.
The text was updated successfully, but these errors were encountered: