fix: hydration issue on firefox

This commit is contained in:
Nicola Zambello 2023-04-05 19:50:52 +02:00
parent a8bfa9e92d
commit f9ddfa36d5
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -5,6 +5,10 @@ import { ClientProvider } from '@mantine/remix';
function hydrate() {
startTransition(() => {
document.querySelectorAll('html > script').forEach((s) => {
s.parentNode!.removeChild(s);
});
hydrateRoot(
document,
<StrictMode>