@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v0.0.0-experimental-e1311612e
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