@remix-run/react
Advanced tools
Comparing version 0.0.0-experimental-db4e08b8 to 0.0.0-experimental-f88eb375
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -517,3 +517,9 @@ * Copyright (c) Remix Software Inc. | ||
} | ||
/** | ||
* Tracks whether Remix has finished hydrating or not, so scripts can be skipped | ||
* during client-side updates. | ||
*/ | ||
let isHydrated = false; | ||
/** | ||
@@ -535,2 +541,5 @@ * Renders the `<script>` tags needed for the initial render. Bundles for | ||
} = useRemixEntryContext(); | ||
React__default["default"].useEffect(() => { | ||
isHydrated = true; | ||
}, []); | ||
let initialScripts = React__default["default"].useMemo(() => { | ||
@@ -577,3 +586,3 @@ let contextScript = serverHandoffString ? `window.__remixContext = ${serverHandoffString};` : ""; | ||
crossOrigin: props.crossOrigin | ||
})), initialScripts); | ||
})), isHydrated ? null : initialScripts); | ||
} | ||
@@ -580,0 +589,0 @@ |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -509,3 +509,9 @@ * Copyright (c) Remix Software Inc. | ||
} | ||
/** | ||
* Tracks whether Remix has finished hydrating or not, so scripts can be skipped | ||
* during client-side updates. | ||
*/ | ||
let isHydrated = false; | ||
/** | ||
@@ -527,2 +533,5 @@ * Renders the `<script>` tags needed for the initial render. Bundles for | ||
} = useRemixEntryContext(); | ||
React__default.useEffect(() => { | ||
isHydrated = true; | ||
}, []); | ||
let initialScripts = React__default.useMemo(() => { | ||
@@ -569,3 +578,3 @@ let contextScript = serverHandoffString ? `window.__remixContext = ${serverHandoffString};` : ""; | ||
crossOrigin: props.crossOrigin | ||
})), initialScripts); | ||
})), isHydrated ? null : initialScripts); | ||
} | ||
@@ -572,0 +581,0 @@ |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -47,3 +47,3 @@ * Copyright (c) Remix Software Inc. | ||
* about to reload the route. A common case is a root loader with nothing but | ||
* enviornment variables: after form submissions the root probably doesn't need | ||
* environment variables: after form submissions the root probably doesn't need | ||
* to be reloaded. | ||
@@ -50,0 +50,0 @@ */ |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -18,3 +18,3 @@ * Copyright (c) Remix Software Inc. | ||
if (typeof window !== "undefined") { | ||
if (typeof document !== "undefined") { | ||
let sessionPositions = sessionStorage.getItem(STORAGE_KEY); | ||
@@ -78,3 +78,3 @@ | ||
if (typeof window !== "undefined") { | ||
if (typeof document !== "undefined") { | ||
// eslint-disable-next-line | ||
@@ -81,0 +81,0 @@ React.useLayoutEffect(() => { |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/react", | ||
"description": "React DOM bindings for Remix", | ||
"version": "0.0.0-experimental-db4e08b8", | ||
"version": "0.0.0-experimental-f88eb375", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "repository": { | ||
"dependencies": { | ||
"react-router-dom": "^6.1.0" | ||
"react-router-dom": "^6.1.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "peerDependencies": { |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
@@ -68,3 +68,3 @@ import type { Location } from "history"; | ||
* about to reload the route. A common case is a root loader with nothing but | ||
* enviornment variables: after form submissions the root probably doesn't need | ||
* environment variables: after form submissions the root probably doesn't need | ||
* to be reloaded. | ||
@@ -71,0 +71,0 @@ */ |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -69,3 +69,3 @@ * Copyright (c) Remix Software Inc. | ||
* about to reload the route. A common case is a root loader with nothing but | ||
* enviornment variables: after form submissions the root probably doesn't need | ||
* environment variables: after form submissions the root probably doesn't need | ||
* to be reloaded. | ||
@@ -72,0 +72,0 @@ */ |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -42,3 +42,3 @@ * Copyright (c) Remix Software Inc. | ||
if (typeof window !== "undefined") { | ||
if (typeof document !== "undefined") { | ||
let sessionPositions = sessionStorage.getItem(STORAGE_KEY); | ||
@@ -102,3 +102,3 @@ | ||
if (typeof window !== "undefined") { | ||
if (typeof document !== "undefined") { | ||
// eslint-disable-next-line | ||
@@ -105,0 +105,0 @@ React__namespace.useLayoutEffect(() => { |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v0.0.0-experimental-db4e08b8 | ||
* @remix-run/react v0.0.0-experimental-f88eb375 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
238179
6686
Updatedreact-router-dom@^6.1.1