@tanstack/router-core 1.136.13 → 1.136.14
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/cjs/router.cjs +7 -3
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +7 -3
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +8 -4
package/dist/cjs/router.cjs
CHANGED
|
@@ -1068,9 +1068,13 @@ class RouterCore {
|
|
|
1068
1068
|
strictParseParams(strictParams)
|
|
1069
1069
|
);
|
|
1070
1070
|
} catch (err) {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1071
|
+
if (notFound.isNotFound(err) || redirect.isRedirect(err)) {
|
|
1072
|
+
paramsError = err;
|
|
1073
|
+
} else {
|
|
1074
|
+
paramsError = new PathParamError(err.message, {
|
|
1075
|
+
cause: err
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1074
1078
|
if (opts?.throwOnError) {
|
|
1075
1079
|
throw paramsError;
|
|
1076
1080
|
}
|