Skip to content

Commit

Permalink
Update entry.client + entry.server
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasKn committed Dec 1, 2024
1 parent fb15e4a commit 9ef5bf0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 10 additions & 8 deletions app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import {RemixBrowser} from '@remix-run/react';
import {startTransition, StrictMode} from 'react';
import {hydrateRoot} from 'react-dom/client';

startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>,
);
});
if (!window.location.origin.includes('webcache.googleusercontent.com')) {
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>,
);
});
}
1 change: 0 additions & 1 deletion app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default async function handleRequest(
{
nonce,
onError(error) {
// eslint-disable-next-line no-console
console.error(error);
responseStatusCode = 500;
},
Expand Down

0 comments on commit 9ef5bf0

Please sign in to comment.