react-router 0.0.0-experimental-4e44d47 → 0.0.0-experimental-3df673e
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/{production/chunk-IZVJSKMU.mjs → development/chunk-27W3PGKT.mjs} +3 -3
- package/dist/development/{chunk-XVVWTPHF.mjs → chunk-5FNKA3AJ.mjs} +20 -18
- package/dist/{production/chunk-UNIYMJFU.js → development/chunk-HMTR6AB3.js} +134 -134
- package/dist/development/{chunk-7B7CUJYE.js → chunk-OAO2BCWA.js} +19 -17
- package/dist/development/dom-export.d.mts +1 -1
- package/dist/development/dom-export.d.ts +1 -1
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/{index-react-server-client-83aVZHgI.d.ts → index-react-server-client-CCykjjOv.d.ts} +2 -2
- package/dist/{production/index-react-server-client-BDG19ZQl.d.mts → development/index-react-server-client-vPxdwQO-.d.mts} +2 -2
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +3 -3
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +3 -3
- package/dist/development/index-react-server.d.ts +3 -3
- package/dist/development/index-react-server.js +11 -11
- package/dist/development/index-react-server.mjs +11 -11
- package/dist/development/index.d.mts +6 -6
- package/dist/development/index.d.ts +6 -6
- package/dist/development/index.js +99 -99
- package/dist/development/index.mjs +3 -3
- package/dist/development/{instrumentation-XYmrzhe3.d.ts → instrumentation-BsMyG4uF.d.ts} +2 -2
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{production/routeModules-Bu1JamQV.d.ts → development/routeModules-BsBQDHG4.d.ts} +3 -3
- package/dist/development/{routeModules-CtCOLGtG.d.mts → routeModules-DSpLybMz.d.mts} +3 -3
- package/dist/development/{router-2BoB34m1.d.mts → router-B02dMGKy.d.mts} +2 -2
- package/dist/{development/chunk-MTLWRICG.js → production/chunk-BJWGLTLV.js} +134 -134
- package/dist/{development/chunk-PSQFTIPQ.mjs → production/chunk-IFXZKZUN.mjs} +3 -3
- package/dist/production/{chunk-OXRQQZPR.js → chunk-NZTFTCSL.js} +19 -17
- package/dist/production/{chunk-GSSVRQ6M.mjs → chunk-XWLYGPB7.mjs} +20 -18
- package/dist/production/dom-export.d.mts +1 -1
- package/dist/production/dom-export.d.ts +1 -1
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/{index-react-server-client-83aVZHgI.d.ts → index-react-server-client-CCykjjOv.d.ts} +2 -2
- package/dist/{development/index-react-server-client-BDG19ZQl.d.mts → production/index-react-server-client-vPxdwQO-.d.mts} +2 -2
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +3 -3
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +3 -3
- package/dist/production/index-react-server.d.ts +3 -3
- package/dist/production/index-react-server.js +11 -11
- package/dist/production/index-react-server.mjs +11 -11
- package/dist/production/index.d.mts +6 -6
- package/dist/production/index.d.ts +6 -6
- package/dist/production/index.js +99 -99
- package/dist/production/index.mjs +3 -3
- package/dist/production/{instrumentation-XYmrzhe3.d.ts → instrumentation-BsMyG4uF.d.ts} +2 -2
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/routeModules-Bu1JamQV.d.ts → production/routeModules-BsBQDHG4.d.ts} +3 -3
- package/dist/production/{routeModules-CtCOLGtG.d.mts → routeModules-DSpLybMz.d.mts} +3 -3
- package/dist/production/{router-2BoB34m1.d.mts → router-B02dMGKy.d.mts} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
withComponentProps,
|
|
62
62
|
withErrorBoundaryProps,
|
|
63
63
|
withHydrateFallbackProps
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-XWLYGPB7.mjs";
|
|
65
65
|
|
|
66
66
|
// lib/dom/ssr/server.tsx
|
|
67
67
|
import * as React from "react";
|
|
@@ -519,7 +519,7 @@ async function callRouteHandler(handler, args) {
|
|
|
519
519
|
request: stripRoutesParam(stripIndexParam2(args.request)),
|
|
520
520
|
params: args.params,
|
|
521
521
|
context: args.context,
|
|
522
|
-
|
|
522
|
+
unstable_pattern: args.unstable_pattern
|
|
523
523
|
});
|
|
524
524
|
if (isDataWithResponseInit(result) && result.init && result.init.status && isRedirectStatusCode(result.init.status)) {
|
|
525
525
|
throw new Response(null, result.init);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -985,7 +985,7 @@ async function recurseRight(impls, info, handler, index) {
|
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
function getInstrumentationInfo(args) {
|
|
988
|
-
let { request, context, params,
|
|
988
|
+
let { request, context, params, unstable_pattern } = args;
|
|
989
989
|
return {
|
|
990
990
|
// pseudo "Request" with the info they may want to read from
|
|
991
991
|
request: {
|
|
@@ -997,7 +997,7 @@ function getInstrumentationInfo(args) {
|
|
|
997
997
|
}
|
|
998
998
|
},
|
|
999
999
|
params: { ...params },
|
|
1000
|
-
|
|
1000
|
+
unstable_pattern,
|
|
1001
1001
|
context: {
|
|
1002
1002
|
get: (...args2) => context.get(...args2)
|
|
1003
1003
|
}
|
|
@@ -3095,7 +3095,7 @@ function createStaticHandler(routes, opts) {
|
|
|
3095
3095
|
let response = await runServerMiddlewarePipeline(
|
|
3096
3096
|
{
|
|
3097
3097
|
request,
|
|
3098
|
-
|
|
3098
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
3099
3099
|
matches,
|
|
3100
3100
|
params: matches[0].params,
|
|
3101
3101
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -3241,7 +3241,7 @@ function createStaticHandler(routes, opts) {
|
|
|
3241
3241
|
let response = await runServerMiddlewarePipeline(
|
|
3242
3242
|
{
|
|
3243
3243
|
request,
|
|
3244
|
-
|
|
3244
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
3245
3245
|
matches,
|
|
3246
3246
|
params: matches[0].params,
|
|
3247
3247
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -3815,6 +3815,8 @@ function getMatchesToLoad(request, scopedContext, mapRouteProperties, manifest,
|
|
|
3815
3815
|
actionResult,
|
|
3816
3816
|
actionStatus
|
|
3817
3817
|
};
|
|
3818
|
+
let pattern = getRoutePattern(matches.map((m) => m.route.path));
|
|
3819
|
+
console.log(pattern, matches);
|
|
3818
3820
|
let dsMatches = matches.map((match, index) => {
|
|
3819
3821
|
let { route } = match;
|
|
3820
3822
|
let forceShouldLoad = null;
|
|
@@ -3838,7 +3840,7 @@ function getMatchesToLoad(request, scopedContext, mapRouteProperties, manifest,
|
|
|
3838
3840
|
mapRouteProperties,
|
|
3839
3841
|
manifest,
|
|
3840
3842
|
request,
|
|
3841
|
-
|
|
3843
|
+
pattern,
|
|
3842
3844
|
match,
|
|
3843
3845
|
lazyRoutePropertiesToSkip,
|
|
3844
3846
|
scopedContext,
|
|
@@ -3859,7 +3861,7 @@ function getMatchesToLoad(request, scopedContext, mapRouteProperties, manifest,
|
|
|
3859
3861
|
mapRouteProperties,
|
|
3860
3862
|
manifest,
|
|
3861
3863
|
request,
|
|
3862
|
-
|
|
3864
|
+
pattern,
|
|
3863
3865
|
match,
|
|
3864
3866
|
lazyRoutePropertiesToSkip,
|
|
3865
3867
|
scopedContext,
|
|
@@ -4322,7 +4324,7 @@ async function runMiddlewarePipeline(args, handler, processResult, isResult, err
|
|
|
4322
4324
|
request,
|
|
4323
4325
|
params,
|
|
4324
4326
|
context,
|
|
4325
|
-
|
|
4327
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path))
|
|
4326
4328
|
},
|
|
4327
4329
|
tuples,
|
|
4328
4330
|
handler,
|
|
@@ -4401,7 +4403,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties, manifest, request,
|
|
|
4401
4403
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
4402
4404
|
};
|
|
4403
4405
|
}
|
|
4404
|
-
function getDataStrategyMatch(mapRouteProperties, manifest, request,
|
|
4406
|
+
function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
4405
4407
|
let isUsingNewApi = false;
|
|
4406
4408
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
4407
4409
|
mapRouteProperties,
|
|
@@ -4435,7 +4437,7 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, pattern, ma
|
|
|
4435
4437
|
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
4436
4438
|
return callLoaderOrAction({
|
|
4437
4439
|
request,
|
|
4438
|
-
|
|
4440
|
+
unstable_pattern,
|
|
4439
4441
|
match,
|
|
4440
4442
|
lazyHandlerPromise: _optionalChain([_lazyPromises, 'optionalAccess', _39 => _39.handler]),
|
|
4441
4443
|
lazyRoutePromise: _optionalChain([_lazyPromises, 'optionalAccess', _40 => _40.route]),
|
|
@@ -4484,7 +4486,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
4484
4486
|
}
|
|
4485
4487
|
let dataStrategyArgs = {
|
|
4486
4488
|
request,
|
|
4487
|
-
|
|
4489
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
4488
4490
|
params: matches[0].params,
|
|
4489
4491
|
context: scopedContext,
|
|
4490
4492
|
matches
|
|
@@ -4525,7 +4527,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
4525
4527
|
}
|
|
4526
4528
|
async function callLoaderOrAction({
|
|
4527
4529
|
request,
|
|
4528
|
-
|
|
4530
|
+
unstable_pattern,
|
|
4529
4531
|
match,
|
|
4530
4532
|
lazyHandlerPromise,
|
|
4531
4533
|
lazyRoutePromise,
|
|
@@ -4552,7 +4554,7 @@ async function callLoaderOrAction({
|
|
|
4552
4554
|
return handler(
|
|
4553
4555
|
{
|
|
4554
4556
|
request,
|
|
4555
|
-
|
|
4557
|
+
unstable_pattern,
|
|
4556
4558
|
params: match.params,
|
|
4557
4559
|
context: scopedContext
|
|
4558
4560
|
},
|
|
@@ -7458,7 +7460,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
7458
7460
|
let hasInitialError = initialState && initialState.errors && route.id in initialState.errors;
|
|
7459
7461
|
let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess', _91 => _91.errors, 'optionalAccess', _92 => _92[route.id]]) : void 0;
|
|
7460
7462
|
let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access', _93 => _93.clientLoader, 'optionalAccess', _94 => _94.hydrate]) === true || !route.hasLoader);
|
|
7461
|
-
dataRoute.loader = async ({ request, params, context,
|
|
7463
|
+
dataRoute.loader = async ({ request, params, context, unstable_pattern }, singleFetch) => {
|
|
7462
7464
|
try {
|
|
7463
7465
|
let result = await prefetchStylesAndCallHandler(async () => {
|
|
7464
7466
|
invariant2(
|
|
@@ -7472,7 +7474,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
7472
7474
|
request,
|
|
7473
7475
|
params,
|
|
7474
7476
|
context,
|
|
7475
|
-
|
|
7477
|
+
unstable_pattern,
|
|
7476
7478
|
async serverLoader() {
|
|
7477
7479
|
preventInvalidServerHandlerCall("loader", route);
|
|
7478
7480
|
if (isHydrationRequest) {
|
|
@@ -7498,7 +7500,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
7498
7500
|
route.hasLoader,
|
|
7499
7501
|
isSpaMode
|
|
7500
7502
|
);
|
|
7501
|
-
dataRoute.action = ({ request, params, context,
|
|
7503
|
+
dataRoute.action = ({ request, params, context, unstable_pattern }, singleFetch) => {
|
|
7502
7504
|
return prefetchStylesAndCallHandler(async () => {
|
|
7503
7505
|
invariant2(
|
|
7504
7506
|
routeModule,
|
|
@@ -7514,7 +7516,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
7514
7516
|
request,
|
|
7515
7517
|
params,
|
|
7516
7518
|
context,
|
|
7517
|
-
|
|
7519
|
+
unstable_pattern,
|
|
7518
7520
|
async serverAction() {
|
|
7519
7521
|
preventInvalidServerHandlerCall("action", route);
|
|
7520
7522
|
return fetchServerAction(singleFetch);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -985,7 +985,7 @@ async function recurseRight(impls, info, handler, index) {
|
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
function getInstrumentationInfo(args) {
|
|
988
|
-
let { request, context, params,
|
|
988
|
+
let { request, context, params, unstable_pattern } = args;
|
|
989
989
|
return {
|
|
990
990
|
// pseudo "Request" with the info they may want to read from
|
|
991
991
|
request: {
|
|
@@ -997,7 +997,7 @@ function getInstrumentationInfo(args) {
|
|
|
997
997
|
}
|
|
998
998
|
},
|
|
999
999
|
params: { ...params },
|
|
1000
|
-
|
|
1000
|
+
unstable_pattern,
|
|
1001
1001
|
context: {
|
|
1002
1002
|
get: (...args2) => context.get(...args2)
|
|
1003
1003
|
}
|
|
@@ -3095,7 +3095,7 @@ function createStaticHandler(routes, opts) {
|
|
|
3095
3095
|
let response = await runServerMiddlewarePipeline(
|
|
3096
3096
|
{
|
|
3097
3097
|
request,
|
|
3098
|
-
|
|
3098
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
3099
3099
|
matches,
|
|
3100
3100
|
params: matches[0].params,
|
|
3101
3101
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -3241,7 +3241,7 @@ function createStaticHandler(routes, opts) {
|
|
|
3241
3241
|
let response = await runServerMiddlewarePipeline(
|
|
3242
3242
|
{
|
|
3243
3243
|
request,
|
|
3244
|
-
|
|
3244
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
3245
3245
|
matches,
|
|
3246
3246
|
params: matches[0].params,
|
|
3247
3247
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -3815,6 +3815,8 @@ function getMatchesToLoad(request, scopedContext, mapRouteProperties2, manifest,
|
|
|
3815
3815
|
actionResult,
|
|
3816
3816
|
actionStatus
|
|
3817
3817
|
};
|
|
3818
|
+
let pattern = getRoutePattern(matches.map((m) => m.route.path));
|
|
3819
|
+
console.log(pattern, matches);
|
|
3818
3820
|
let dsMatches = matches.map((match, index) => {
|
|
3819
3821
|
let { route } = match;
|
|
3820
3822
|
let forceShouldLoad = null;
|
|
@@ -3838,7 +3840,7 @@ function getMatchesToLoad(request, scopedContext, mapRouteProperties2, manifest,
|
|
|
3838
3840
|
mapRouteProperties2,
|
|
3839
3841
|
manifest,
|
|
3840
3842
|
request,
|
|
3841
|
-
|
|
3843
|
+
pattern,
|
|
3842
3844
|
match,
|
|
3843
3845
|
lazyRoutePropertiesToSkip,
|
|
3844
3846
|
scopedContext,
|
|
@@ -3859,7 +3861,7 @@ function getMatchesToLoad(request, scopedContext, mapRouteProperties2, manifest,
|
|
|
3859
3861
|
mapRouteProperties2,
|
|
3860
3862
|
manifest,
|
|
3861
3863
|
request,
|
|
3862
|
-
|
|
3864
|
+
pattern,
|
|
3863
3865
|
match,
|
|
3864
3866
|
lazyRoutePropertiesToSkip,
|
|
3865
3867
|
scopedContext,
|
|
@@ -4322,7 +4324,7 @@ async function runMiddlewarePipeline(args, handler, processResult, isResult, err
|
|
|
4322
4324
|
request,
|
|
4323
4325
|
params,
|
|
4324
4326
|
context,
|
|
4325
|
-
|
|
4327
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path))
|
|
4326
4328
|
},
|
|
4327
4329
|
tuples,
|
|
4328
4330
|
handler,
|
|
@@ -4401,7 +4403,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties2, manifest, request
|
|
|
4401
4403
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
4402
4404
|
};
|
|
4403
4405
|
}
|
|
4404
|
-
function getDataStrategyMatch(mapRouteProperties2, manifest, request,
|
|
4406
|
+
function getDataStrategyMatch(mapRouteProperties2, manifest, request, unstable_pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
4405
4407
|
let isUsingNewApi = false;
|
|
4406
4408
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
4407
4409
|
mapRouteProperties2,
|
|
@@ -4435,7 +4437,7 @@ function getDataStrategyMatch(mapRouteProperties2, manifest, request, pattern, m
|
|
|
4435
4437
|
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
4436
4438
|
return callLoaderOrAction({
|
|
4437
4439
|
request,
|
|
4438
|
-
|
|
4440
|
+
unstable_pattern,
|
|
4439
4441
|
match,
|
|
4440
4442
|
lazyHandlerPromise: _lazyPromises?.handler,
|
|
4441
4443
|
lazyRoutePromise: _lazyPromises?.route,
|
|
@@ -4484,7 +4486,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
4484
4486
|
}
|
|
4485
4487
|
let dataStrategyArgs = {
|
|
4486
4488
|
request,
|
|
4487
|
-
|
|
4489
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
4488
4490
|
params: matches[0].params,
|
|
4489
4491
|
context: scopedContext,
|
|
4490
4492
|
matches
|
|
@@ -4525,7 +4527,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
4525
4527
|
}
|
|
4526
4528
|
async function callLoaderOrAction({
|
|
4527
4529
|
request,
|
|
4528
|
-
|
|
4530
|
+
unstable_pattern,
|
|
4529
4531
|
match,
|
|
4530
4532
|
lazyHandlerPromise,
|
|
4531
4533
|
lazyRoutePromise,
|
|
@@ -4552,7 +4554,7 @@ async function callLoaderOrAction({
|
|
|
4552
4554
|
return handler(
|
|
4553
4555
|
{
|
|
4554
4556
|
request,
|
|
4555
|
-
|
|
4557
|
+
unstable_pattern,
|
|
4556
4558
|
params: match.params,
|
|
4557
4559
|
context: scopedContext
|
|
4558
4560
|
},
|
|
@@ -8336,7 +8338,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
8336
8338
|
let hasInitialError = initialState && initialState.errors && route.id in initialState.errors;
|
|
8337
8339
|
let initialError = hasInitialError ? initialState?.errors?.[route.id] : void 0;
|
|
8338
8340
|
let isHydrationRequest = needsRevalidation == null && (routeModule.clientLoader?.hydrate === true || !route.hasLoader);
|
|
8339
|
-
dataRoute.loader = async ({ request, params, context,
|
|
8341
|
+
dataRoute.loader = async ({ request, params, context, unstable_pattern }, singleFetch) => {
|
|
8340
8342
|
try {
|
|
8341
8343
|
let result = await prefetchStylesAndCallHandler(async () => {
|
|
8342
8344
|
invariant2(
|
|
@@ -8350,7 +8352,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
8350
8352
|
request,
|
|
8351
8353
|
params,
|
|
8352
8354
|
context,
|
|
8353
|
-
|
|
8355
|
+
unstable_pattern,
|
|
8354
8356
|
async serverLoader() {
|
|
8355
8357
|
preventInvalidServerHandlerCall("loader", route);
|
|
8356
8358
|
if (isHydrationRequest) {
|
|
@@ -8376,7 +8378,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
8376
8378
|
route.hasLoader,
|
|
8377
8379
|
isSpaMode
|
|
8378
8380
|
);
|
|
8379
|
-
dataRoute.action = ({ request, params, context,
|
|
8381
|
+
dataRoute.action = ({ request, params, context, unstable_pattern }, singleFetch) => {
|
|
8380
8382
|
return prefetchStylesAndCallHandler(async () => {
|
|
8381
8383
|
invariant2(
|
|
8382
8384
|
routeModule,
|
|
@@ -8392,7 +8394,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
8392
8394
|
request,
|
|
8393
8395
|
params,
|
|
8394
8396
|
context,
|
|
8395
|
-
|
|
8397
|
+
unstable_pattern,
|
|
8396
8398
|
async serverAction() {
|
|
8397
8399
|
preventInvalidServerHandlerCall("action", route);
|
|
8398
8400
|
return fetchServerAction(singleFetch);
|
|
@@ -9402,7 +9404,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
9402
9404
|
try {
|
|
9403
9405
|
if (isBrowser) {
|
|
9404
9406
|
window.__reactRouterVersion = // @ts-expect-error
|
|
9405
|
-
"0.0.0-experimental-
|
|
9407
|
+
"0.0.0-experimental-3df673e";
|
|
9406
9408
|
}
|
|
9407
9409
|
} catch (e) {
|
|
9408
9410
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientInstrumentation, b as unstable_ClientOnErrorFunction } from './router-
|
|
2
|
+
import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientInstrumentation, b as unstable_ClientOnErrorFunction } from './router-B02dMGKy.mjs';
|
|
3
3
|
import './browser-z32v5KVN.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RouterProviderProps as RouterProviderProps$1, RouterInit, unstable_ClientOnErrorFunction } from 'react-router';
|
|
3
|
-
import { u as unstable_ClientInstrumentation } from './instrumentation-
|
|
3
|
+
import { u as unstable_ClientInstrumentation } from './instrumentation-BsMyG4uF.js';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"use client";
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNZTFTCSLjs = require('./chunk-NZTFTCSL.js');
|
|
15
15
|
|
|
16
16
|
// lib/dom-export/dom-router-provider.tsx
|
|
17
17
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -183,7 +183,7 @@ function HydratedRouter(props) {
|
|
|
183
183
|
}, []);
|
|
184
184
|
React2.useEffect(() => {
|
|
185
185
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
186
|
-
document.querySelectorAll(`[${
|
|
186
|
+
document.querySelectorAll(`[${_chunkNZTFTCSLjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
187
187
|
}
|
|
188
188
|
}, [criticalCss]);
|
|
189
189
|
let [location, setLocation] = React2.useState(router.state.location);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
deserializeErrors,
|
|
14
14
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IFXZKZUN.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
18
18
|
FrameworkContext,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
invariant,
|
|
30
30
|
mapRouteProperties,
|
|
31
31
|
useFogOFWarDiscovery
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XWLYGPB7.mjs";
|
|
33
33
|
|
|
34
34
|
// lib/dom-export/dom-router-provider.tsx
|
|
35
35
|
import * as React from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as RouteModules, H as HydrationState, D as DataRouteObject, r as ClientLoaderFunction, z as StaticHandlerContext, aN as ServerRouteModule, A as AppLoadContext, h as RelativeRoutingType, au as PageLinkDescriptor, y as GetScrollRestorationKeyFunction, t as RouterInit, aO as FutureConfig$1, v as PatchRoutesOnNavigationFunction, e as NavigateOptions, J as Fetcher, j as RouteObject, c as Router, g as SerializeFrom, B as BlockerFunction, aP as CreateStaticHandlerOptions$1, w as StaticHandler } from './routeModules-
|
|
1
|
+
import { d as RouteModules, H as HydrationState, D as DataRouteObject, r as ClientLoaderFunction, z as StaticHandlerContext, aN as ServerRouteModule, A as AppLoadContext, h as RelativeRoutingType, au as PageLinkDescriptor, y as GetScrollRestorationKeyFunction, t as RouterInit, aO as FutureConfig$1, v as PatchRoutesOnNavigationFunction, e as NavigateOptions, J as Fetcher, j as RouteObject, c as Router, g as SerializeFrom, B as BlockerFunction, aP as CreateStaticHandlerOptions$1, w as StaticHandler } from './routeModules-BsBQDHG4.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ac as RouteManifest, t as MiddlewareEnabled, R as RouterContextProvider, w as LoaderFunctionArgs, v as ActionFunctionArgs, j as unstable_ServerInstrumentation, i as HTMLFormMethod, F as FormEncType, T as To, H as History, u as unstable_ClientInstrumentation, f as DataStrategyFunction, L as Location } from './instrumentation-
|
|
3
|
+
import { ac as RouteManifest, t as MiddlewareEnabled, R as RouterContextProvider, w as LoaderFunctionArgs, v as ActionFunctionArgs, j as unstable_ServerInstrumentation, i as HTMLFormMethod, F as FormEncType, T as To, H as History, u as unstable_ClientInstrumentation, f as DataStrategyFunction, L as Location } from './instrumentation-BsMyG4uF.js';
|
|
4
4
|
|
|
5
5
|
interface Route {
|
|
6
6
|
index?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b8 as RouteManifest, H as HydrationState, G as DataRouteObject, Q as StaticHandlerContext, e as MiddlewareEnabled, c as RouterContextProvider, f as LoaderFunctionArgs, A as ActionFunctionArgs, b9 as unstable_ServerInstrumentation, a4 as HTMLFormMethod, a2 as FormEncType, n as RelativeRoutingType, T as To, ba as History, O as GetScrollRestorationKeyFunction, a as RouterInit, bb as FutureConfig$1, u as unstable_ClientInstrumentation, l as DataStrategyFunction, F as PatchRoutesOnNavigationFunction, N as NavigateOptions, V as Fetcher, v as RouteObject, k as Router, B as BlockerFunction, L as Location, bc as CreateStaticHandlerOptions$1, J as StaticHandler } from './router-
|
|
1
|
+
import { b8 as RouteManifest, H as HydrationState, G as DataRouteObject, Q as StaticHandlerContext, e as MiddlewareEnabled, c as RouterContextProvider, f as LoaderFunctionArgs, A as ActionFunctionArgs, b9 as unstable_ServerInstrumentation, a4 as HTMLFormMethod, a2 as FormEncType, n as RelativeRoutingType, T as To, ba as History, O as GetScrollRestorationKeyFunction, a as RouterInit, bb as FutureConfig$1, u as unstable_ClientInstrumentation, l as DataStrategyFunction, F as PatchRoutesOnNavigationFunction, N as NavigateOptions, V as Fetcher, v as RouteObject, k as Router, B as BlockerFunction, L as Location, bc as CreateStaticHandlerOptions$1, J as StaticHandler } from './router-B02dMGKy.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { c as RouteModules, h as ClientLoaderFunction, o as ServerRouteModule, A as AppLoadContext, m as PageLinkDescriptor, d as SerializeFrom } from './routeModules-
|
|
3
|
+
import { c as RouteModules, h as ClientLoaderFunction, o as ServerRouteModule, A as AppLoadContext, m as PageLinkDescriptor, d as SerializeFrom } from './routeModules-DSpLybMz.mjs';
|
|
4
4
|
|
|
5
5
|
interface Route {
|
|
6
6
|
index?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aF as MemoryRouter, aG as Navigate, aH as Outlet, aI as Route, aJ as Router, aK as RouterProvider, aL as Routes, as as UNSAFE_AwaitContextProvider, b2 as UNSAFE_WithComponentProps, b6 as UNSAFE_WithErrorBoundaryProps, b4 as UNSAFE_WithHydrateFallbackProps } from './router-
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
1
|
+
export { aF as MemoryRouter, aG as Navigate, aH as Outlet, aI as Route, aJ as Router, aK as RouterProvider, aL as Routes, as as UNSAFE_AwaitContextProvider, b2 as UNSAFE_WithComponentProps, b6 as UNSAFE_WithErrorBoundaryProps, b4 as UNSAFE_WithHydrateFallbackProps } from './router-B02dMGKy.mjs';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-vPxdwQO-.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './routeModules-
|
|
4
|
+
import './routeModules-DSpLybMz.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { af as MemoryRouter, ag as Navigate, ah as Outlet, ai as Route, aj as Router, ak as RouterProvider, al as Routes, a0 as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps } from './routeModules-
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
1
|
+
export { af as MemoryRouter, ag as Navigate, ah as Outlet, ai as Route, aj as Router, ak as RouterProvider, al as Routes, a0 as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps } from './routeModules-BsBQDHG4.js';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-CCykjjOv.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './instrumentation-
|
|
4
|
+
import './instrumentation-BsMyG4uF.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkBJWGLTLVjs = require('./chunk-BJWGLTLV.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkNZTFTCSLjs = require('./chunk-NZTFTCSL.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkOXRQQZPRjs = require('./chunk-OXRQQZPR.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkBJWGLTLVjs.BrowserRouter; exports.Form = _chunkBJWGLTLVjs.Form; exports.HashRouter = _chunkBJWGLTLVjs.HashRouter; exports.Link = _chunkBJWGLTLVjs.Link; exports.Links = _chunkNZTFTCSLjs.Links; exports.MemoryRouter = _chunkBJWGLTLVjs.MemoryRouter; exports.Meta = _chunkNZTFTCSLjs.Meta; exports.NavLink = _chunkBJWGLTLVjs.NavLink; exports.Navigate = _chunkBJWGLTLVjs.Navigate; exports.Outlet = _chunkBJWGLTLVjs.Outlet; exports.Route = _chunkBJWGLTLVjs.Route; exports.Router = _chunkBJWGLTLVjs.Router; exports.RouterProvider = _chunkBJWGLTLVjs.RouterProvider; exports.Routes = _chunkBJWGLTLVjs.Routes; exports.ScrollRestoration = _chunkBJWGLTLVjs.ScrollRestoration; exports.StaticRouter = _chunkBJWGLTLVjs.StaticRouter; exports.StaticRouterProvider = _chunkBJWGLTLVjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkNZTFTCSLjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkBJWGLTLVjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkBJWGLTLVjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkBJWGLTLVjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkBJWGLTLVjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-3df673e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
WithComponentProps,
|
|
33
33
|
WithErrorBoundaryProps,
|
|
34
34
|
WithHydrateFallbackProps
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XWLYGPB7.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|
|
@@ -355,7 +355,7 @@ interface DataFunctionArgs<Context> {
|
|
|
355
355
|
* Matched un-interpolated route pattern for the current path (i.e., /blog/:slug).
|
|
356
356
|
* Mostly useful as a identifier to aggregate on for logging/tracing/etc.
|
|
357
357
|
*/
|
|
358
|
-
|
|
358
|
+
unstable_pattern: string;
|
|
359
359
|
/**
|
|
360
360
|
* {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
|
|
361
361
|
* @example
|
|
@@ -928,7 +928,7 @@ type RouteHandlerInstrumentationInfo = Readonly<{
|
|
|
928
928
|
headers: Pick<Headers, "get">;
|
|
929
929
|
};
|
|
930
930
|
params: LoaderFunctionArgs["params"];
|
|
931
|
-
|
|
931
|
+
unstable_pattern: string;
|
|
932
932
|
context: Pick<RouterContextProvider, "get">;
|
|
933
933
|
}>;
|
|
934
934
|
interface InstrumentLazyFunction extends GenericInstrumentFunction {
|
|
@@ -1911,7 +1911,7 @@ type ClientDataFunctionArgs<Params> = {
|
|
|
1911
1911
|
* Matched un-interpolated route pattern for the current path (i.e., /blog/:slug).
|
|
1912
1912
|
* Mostly useful as a identifier to aggregate on for logging/tracing/etc.
|
|
1913
1913
|
*/
|
|
1914
|
-
|
|
1914
|
+
unstable_pattern: string;
|
|
1915
1915
|
/**
|
|
1916
1916
|
* When `future.v8_middleware` is not enabled, this is undefined.
|
|
1917
1917
|
*
|
|
@@ -355,7 +355,7 @@ interface DataFunctionArgs<Context> {
|
|
|
355
355
|
* Matched un-interpolated route pattern for the current path (i.e., /blog/:slug).
|
|
356
356
|
* Mostly useful as a identifier to aggregate on for logging/tracing/etc.
|
|
357
357
|
*/
|
|
358
|
-
|
|
358
|
+
unstable_pattern: string;
|
|
359
359
|
/**
|
|
360
360
|
* {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
|
|
361
361
|
* @example
|
|
@@ -928,7 +928,7 @@ type RouteHandlerInstrumentationInfo = Readonly<{
|
|
|
928
928
|
headers: Pick<Headers, "get">;
|
|
929
929
|
};
|
|
930
930
|
params: LoaderFunctionArgs["params"];
|
|
931
|
-
|
|
931
|
+
unstable_pattern: string;
|
|
932
932
|
context: Pick<RouterContextProvider, "get">;
|
|
933
933
|
}>;
|
|
934
934
|
interface InstrumentLazyFunction extends GenericInstrumentFunction {
|
|
@@ -1911,7 +1911,7 @@ type ClientDataFunctionArgs<Params> = {
|
|
|
1911
1911
|
* Matched un-interpolated route pattern for the current path (i.e., /blog/:slug).
|
|
1912
1912
|
* Mostly useful as a identifier to aggregate on for logging/tracing/etc.
|
|
1913
1913
|
*/
|
|
1914
|
-
|
|
1914
|
+
unstable_pattern: string;
|
|
1915
1915
|
/**
|
|
1916
1916
|
* When `future.v8_middleware` is not enabled, this is undefined.
|
|
1917
1917
|
*
|
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* react-router v0.0.0-experimental-
|
|
30
|
+
* react-router v0.0.0-experimental-3df673e
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Remix Software Inc.
|
|
33
33
|
*
|
|
@@ -138,7 +138,7 @@ async function recurseRight(impls, info, handler, index) {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
function getInstrumentationInfo(args) {
|
|
141
|
-
let { request, context, params,
|
|
141
|
+
let { request, context, params, unstable_pattern } = args;
|
|
142
142
|
return {
|
|
143
143
|
// pseudo "Request" with the info they may want to read from
|
|
144
144
|
request: {
|
|
@@ -150,7 +150,7 @@ function getInstrumentationInfo(args) {
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
params: { ...params },
|
|
153
|
-
|
|
153
|
+
unstable_pattern,
|
|
154
154
|
context: {
|
|
155
155
|
get: (...args2) => context.get(...args2)
|
|
156
156
|
}
|
|
@@ -911,7 +911,7 @@ function createStaticHandler(routes, opts) {
|
|
|
911
911
|
let response = await runServerMiddlewarePipeline(
|
|
912
912
|
{
|
|
913
913
|
request,
|
|
914
|
-
|
|
914
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
915
915
|
matches,
|
|
916
916
|
params: matches[0].params,
|
|
917
917
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -1057,7 +1057,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1057
1057
|
let response = await runServerMiddlewarePipeline(
|
|
1058
1058
|
{
|
|
1059
1059
|
request,
|
|
1060
|
-
|
|
1060
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
1061
1061
|
matches,
|
|
1062
1062
|
params: matches[0].params,
|
|
1063
1063
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -1698,7 +1698,7 @@ async function runMiddlewarePipeline(args, handler, processResult, isResult, err
|
|
|
1698
1698
|
request,
|
|
1699
1699
|
params,
|
|
1700
1700
|
context,
|
|
1701
|
-
|
|
1701
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path))
|
|
1702
1702
|
},
|
|
1703
1703
|
tuples,
|
|
1704
1704
|
handler,
|
|
@@ -1777,7 +1777,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties, manifest, request,
|
|
|
1777
1777
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
1778
1778
|
};
|
|
1779
1779
|
}
|
|
1780
|
-
function getDataStrategyMatch(mapRouteProperties, manifest, request,
|
|
1780
|
+
function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
1781
1781
|
let isUsingNewApi = false;
|
|
1782
1782
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
1783
1783
|
mapRouteProperties,
|
|
@@ -1811,7 +1811,7 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, pattern, ma
|
|
|
1811
1811
|
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
1812
1812
|
return callLoaderOrAction({
|
|
1813
1813
|
request,
|
|
1814
|
-
|
|
1814
|
+
unstable_pattern,
|
|
1815
1815
|
match,
|
|
1816
1816
|
lazyHandlerPromise: _lazyPromises?.handler,
|
|
1817
1817
|
lazyRoutePromise: _lazyPromises?.route,
|
|
@@ -1860,7 +1860,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1860
1860
|
}
|
|
1861
1861
|
let dataStrategyArgs = {
|
|
1862
1862
|
request,
|
|
1863
|
-
|
|
1863
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
1864
1864
|
params: matches[0].params,
|
|
1865
1865
|
context: scopedContext,
|
|
1866
1866
|
matches
|
|
@@ -1888,7 +1888,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1888
1888
|
}
|
|
1889
1889
|
async function callLoaderOrAction({
|
|
1890
1890
|
request,
|
|
1891
|
-
|
|
1891
|
+
unstable_pattern,
|
|
1892
1892
|
match,
|
|
1893
1893
|
lazyHandlerPromise,
|
|
1894
1894
|
lazyRoutePromise,
|
|
@@ -1915,7 +1915,7 @@ async function callLoaderOrAction({
|
|
|
1915
1915
|
return handler(
|
|
1916
1916
|
{
|
|
1917
1917
|
request,
|
|
1918
|
-
|
|
1918
|
+
unstable_pattern,
|
|
1919
1919
|
params: match.params,
|
|
1920
1920
|
context: scopedContext
|
|
1921
1921
|
},
|