@remix-run/router 0.0.0-experimental-4841e12b → 0.0.0-experimental-c93c722c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/router.cjs.js +4 -2
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.js +4 -2
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +4 -2
- package/dist/router.umd.js.map +1 -1
- package/dist/router.umd.min.js +2 -2
- package/dist/router.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/router.ts +6 -1
package/dist/router.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/router v0.0.0-experimental-
|
|
2
|
+
* @remix-run/router v0.0.0-experimental-c93c722c
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -2441,7 +2441,9 @@ function createRouter(init) {
|
|
|
2441
2441
|
// state. If not, we need to switch to our loading state and load data,
|
|
2442
2442
|
// preserving any new action data or existing action data (in the case of
|
|
2443
2443
|
// a revalidation interrupting an actionReload)
|
|
2444
|
-
|
|
2444
|
+
// If we have partialHydration enabled, then don't update the state for the
|
|
2445
|
+
// initial data load since iot's not a "navigation"
|
|
2446
|
+
if (!isUninterruptedRevalidation && (!future.v7_partialHydration || !initialHydration)) {
|
|
2445
2447
|
revalidatingFetchers.forEach(rf => {
|
|
2446
2448
|
let fetcher = state.fetchers.get(rf.key);
|
|
2447
2449
|
let revalidatingFetcher = getLoadingFetcher(undefined, fetcher ? fetcher.data : undefined);
|