@remix-run/router 1.7.2-pre.0 → 1.7.2

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/CHANGELOG.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # `@remix-run/router`
2
2
 
3
- ## 1.7.2-pre.0
3
+ ## 1.7.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Trigger an error if a `defer` promise resolves/rejects with `undefined` in order to match the behavior of loaders and actions which must return a value or `null` ([#10690](https://github.com/remix-run/react-router/pull/10690))
8
- - Properly handle fetcher redirects interrupted by normal navigations ([#10674](https://github.com/remix-run/react-router/pull/10674))
8
+ - Properly handle fetcher redirects interrupted by normal navigations ([#10674](https://github.com/remix-run/react-router/pull/10674), [#10709](https://github.com/remix-run/react-router/pull/10709))
9
9
  - Initial-load fetchers should not automatically revalidate on GET navigations ([#10688](https://github.com/remix-run/react-router/pull/10688))
10
10
  - Enhance the return type of `Route.lazy` to prohibit returning an empty object ([#10634](https://github.com/remix-run/react-router/pull/10634))
11
11
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.7.2-pre.0
2
+ * @remix-run/router v1.7.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -2195,6 +2195,7 @@ function createRouter(init) {
2195
2195
  // about to reload. Note that if this is an action reload we would have
2196
2196
  // already cancelled all pending deferreds so this would be a no-op
2197
2197
  cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId));
2198
+ pendingNavigationLoadId = ++incrementingLoadId;
2198
2199
 
2199
2200
  // Short circuit if we have no loaders to run
2200
2201
  if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {
@@ -2235,7 +2236,6 @@ function createRouter(init) {
2235
2236
  fetchers: new Map(state.fetchers)
2236
2237
  } : {}));
2237
2238
  }
2238
- pendingNavigationLoadId = ++incrementingLoadId;
2239
2239
  revalidatingFetchers.forEach(rf => {
2240
2240
  if (fetchControllers.has(rf.key)) {
2241
2241
  abortFetcher(rf.key);