@remix-run/router 0.0.0-experimental-e1311612e → 0.0.0-experimental-4db3c3744
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 +2 -2
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.js +2 -2
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +2 -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/dist/utils.d.ts +7 -0
- package/package.json +1 -1
- package/router.ts +3 -1
- package/utils.ts +12 -0
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-4db3c3744
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -3141,7 +3141,7 @@ function createRouter(init) {
|
|
|
3141
3141
|
// There's no need to abort on redirects, since we don't detect the
|
|
3142
3142
|
// redirect until the action/loaders have settled
|
|
3143
3143
|
pendingNavigationController = null;
|
|
3144
|
-
let redirectHistoryAction = replace === true ? Action.Replace : Action.Push;
|
|
3144
|
+
let redirectHistoryAction = replace === true || redirect.response.headers.has("X-Remix-Replace") ? Action.Replace : Action.Push;
|
|
3145
3145
|
|
|
3146
3146
|
// Use the incoming submission if provided, fallback on the active one in
|
|
3147
3147
|
// state.navigation
|