I have a Remix app using SPA Mode and uses react-intl for translation. I am therefore translating the title in a meta export. This works great, however I am getting hyrdation mismatch errors in the console. Since the locale is stored in localStorage and SPA Mode has a single index.html file which has the default (non-translated) value.
Seems to me like there are a few options:
- Somehow put
suppressHydrationWarningon the<title>. This is not currently possible as it is part of the in-built<Meta>components. - Don't translate the root title, and rely on each individual route to specify a dynamic translated version.
- Dynamically override the page title on hydration instead of using the
metaAPI.
Curious if anyone has ran into this, and if there are more options I am missing?