@tanstack/react-router 0.0.1-beta.15 → 0.0.1-beta.18
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/react-router/src/index.js +1 -1
- package/build/cjs/react-router/src/index.js.map +1 -1
- package/build/cjs/router-core/build/esm/index.js +2 -2
- package/build/cjs/router-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +32 -32
- package/build/umd/index.development.js +3 -3
- 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
- package/src/index.tsx +5 -5
package/build/esm/index.js
CHANGED
|
@@ -2451,9 +2451,9 @@ function createRouter(userOptions) {
|
|
|
2451
2451
|
pathname: next.pathname,
|
|
2452
2452
|
hash: next.hash,
|
|
2453
2453
|
search: next.searchStr
|
|
2454
|
-
}, {
|
|
2454
|
+
}, _extends({
|
|
2455
2455
|
id
|
|
2456
|
-
});
|
|
2456
|
+
}, next.state));
|
|
2457
2457
|
} else {
|
|
2458
2458
|
history.push({
|
|
2459
2459
|
pathname: next.pathname,
|
|
@@ -2647,7 +2647,7 @@ function createReactRouter(opts) {
|
|
|
2647
2647
|
|
|
2648
2648
|
if ((_opts$strict = opts == null ? void 0 : opts.strict) != null ? _opts$strict : true) {
|
|
2649
2649
|
invariant(match, "Could not find an active match for \"" + routeId + "\"!");
|
|
2650
|
-
invariant(runtimeMatch.routeId == (match == null ? void 0 : match.routeId), "useMatch(
|
|
2650
|
+
invariant(runtimeMatch.routeId == (match == null ? void 0 : match.routeId), "useMatch(\"" + (match == null ? void 0 : match.routeId) + "\") is being called in a component that is meant to render the '" + runtimeMatch.routeId + "' route. Did you mean to 'useMatch(\"" + (match == null ? void 0 : match.routeId) + "\", { strict: false })' or 'useRoute(\"" + (match == null ? void 0 : match.routeId) + "\")' instead?");
|
|
2651
2651
|
}
|
|
2652
2652
|
|
|
2653
2653
|
return match;
|