@tanstack/react-router 0.0.1-beta.25 → 0.0.1-beta.26
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/build/cjs/router-core/build/esm/index.js +6 -4
- package/build/cjs/router-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +6 -4
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +27 -27
- package/build/types/index.d.ts +1 -1
- package/build/umd/index.development.js +6 -4
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -1023,7 +1023,7 @@ function parsePathname(pathname) {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
if (part.charAt(0) === '
|
|
1026
|
+
if (part.charAt(0) === '$') {
|
|
1027
1027
|
return {
|
|
1028
1028
|
type: 'param',
|
|
1029
1029
|
value: part
|
|
@@ -1120,7 +1120,7 @@ function matchByPath(from, matchLocation) {
|
|
|
1120
1120
|
return false;
|
|
1121
1121
|
}
|
|
1122
1122
|
|
|
1123
|
-
if (
|
|
1123
|
+
if (baseSegment.value.charAt(0) !== '$') {
|
|
1124
1124
|
params[routeSegment.value.substring(1)] = baseSegment.value;
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
@@ -1382,9 +1382,11 @@ const createRouteConfig = function createRouteConfig(options, children, isRoot,
|
|
|
1382
1382
|
fullPath: fullPath,
|
|
1383
1383
|
options: options,
|
|
1384
1384
|
children,
|
|
1385
|
-
createChildren: cb => createRouteConfig(options, cb(childOptions => createRouteConfig(childOptions, undefined, false, id, fullPath)), false, parentId, parentPath),
|
|
1386
1385
|
addChildren: children => createRouteConfig(options, children, false, parentId, parentPath),
|
|
1387
|
-
createRoute: childOptions => createRouteConfig(childOptions, undefined, false, id, fullPath)
|
|
1386
|
+
createRoute: childOptions => createRouteConfig(childOptions, undefined, false, id, fullPath),
|
|
1387
|
+
generate: () => {
|
|
1388
|
+
invariant(false, "routeConfig.generate() is used by TanStack Router's file-based routing code generation and should not actually be called during runtime. ");
|
|
1389
|
+
}
|
|
1388
1390
|
};
|
|
1389
1391
|
};
|
|
1390
1392
|
|