Skip to content

Commit

Permalink
fix: update to hydrateRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
cabljac committed Nov 4, 2022
1 parent 11fe021 commit e2909b0
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions website/app/entry.client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { hydrateRoot } from 'react-dom/client';
import { hydrate } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { RemixBrowser } from 'remix';
//@ts-ignore
Expand All @@ -20,13 +19,9 @@ if (
delete window.__remixManifest.routes['routes/preview-fetch'];
}


// I think this is causing an error in prod. switching to legacy, to check.
// hydrateRoot(
// document,
// <BrowserRouter>
// <RemixBrowser />
// </BrowserRouter>,
// );

hydrate(<RemixBrowser/>, document);
hydrateRoot(
document,
<BrowserRouter>
<RemixBrowser />
</BrowserRouter>,
);

0 comments on commit e2909b0

Please sign in to comment.