@remix-run/router 1.21.2-pre-v6.0 → 1.22.0-pre-v6.1

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.21.2-pre-v6.0
2
+ * @remix-run/router v1.22.0-pre-v6.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -2430,7 +2430,7 @@ function createRouter(init) {
2430
2430
  let abortController = new AbortController();
2431
2431
  let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);
2432
2432
  if (isFogOfWar) {
2433
- let discoverResult = await discoverRoutes(requestMatches, path, fetchRequest.signal);
2433
+ let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
2434
2434
  if (discoverResult.type === "aborted") {
2435
2435
  return;
2436
2436
  } else if (discoverResult.type === "error") {
@@ -2607,7 +2607,7 @@ function createRouter(init) {
2607
2607
  let abortController = new AbortController();
2608
2608
  let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);
2609
2609
  if (isFogOfWar) {
2610
- let discoverResult = await discoverRoutes(matches, path, fetchRequest.signal);
2610
+ let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
2611
2611
  if (discoverResult.type === "aborted") {
2612
2612
  return;
2613
2613
  } else if (discoverResult.type === "error") {
@@ -3142,6 +3142,7 @@ function createRouter(init) {
3142
3142
  let localManifest = manifest;
3143
3143
  try {
3144
3144
  await patchRoutesOnNavigationImpl({
3145
+ signal,
3145
3146
  path: pathname,
3146
3147
  matches: partialMatches,
3147
3148
  patch: (routeId, children) => {