diff --git a/packages/remix-react/scroll-restoration.tsx b/packages/remix-react/scroll-restoration.tsx index b14edb6a004..b2033ece1c5 100644 --- a/packages/remix-react/scroll-restoration.tsx +++ b/packages/remix-react/scroll-restoration.tsx @@ -9,7 +9,6 @@ import type { ScriptProps } from "./components"; import { useMatches } from "./components"; let STORAGE_KEY = "positions"; -let hydrated = false; /** * This component will emulate the browser's scroll restoration on location @@ -29,7 +28,6 @@ export function ScrollRestoration({ useScrollRestoration({ getKey, storageKey: STORAGE_KEY, - skip: !hydrated, }); // In order to support `getKey`, we need to compute a "key" here so we can @@ -66,12 +64,6 @@ export function ScrollRestoration({ } }).toString(); - // Use this to skip restoration on the initial load since we'll do it in - // the inline