@tanstack/react-router
Advanced tools
Comparing version 1.45.10 to 1.45.11
@@ -25,3 +25,3 @@ import { MatchLocation } from './RouterProvider.js'; | ||
path?: string; | ||
params: any; | ||
params: Record<string, unknown>; | ||
leaveWildcards?: boolean; | ||
@@ -28,0 +28,0 @@ leaveParams?: boolean; |
import { last } from "./utils.js"; | ||
function joinPaths(paths) { | ||
return cleanPath(paths.filter(Boolean).join("/")); | ||
return cleanPath( | ||
paths.filter((val) => { | ||
return val !== void 0; | ||
}).join("/") | ||
); | ||
} | ||
@@ -5,0 +9,0 @@ function cleanPath(path) { |
@@ -217,2 +217,3 @@ import { Store, NoInfer } from '@tanstack/react-store'; | ||
* This is useful for providing a context to the entire router. | ||
* Only non-DOM-rendering components like providers should be used, anything else will cause a hydration error. | ||
* @link [API Docs](https://tanstack.com/router/latest/docs/framework/react/api/router/RouterOptionsType#wrap-property) | ||
@@ -226,2 +227,3 @@ */ | ||
* This is useful for providing a context to the inner contents of the router where you also need access to the router context and hooks. | ||
* Only non-DOM-rendering components like providers should be used, anything else will cause a hydration error. | ||
* @link [API Docs](https://tanstack.com/router/latest/docs/framework/react/api/router/RouterOptionsType#innerwrap-property) | ||
@@ -228,0 +230,0 @@ */ |
{ | ||
"name": "@tanstack/react-router", | ||
"version": "1.45.10", | ||
"version": "1.45.11", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -11,3 +11,9 @@ import { last } from './utils' | ||
export function joinPaths(paths: Array<string | undefined>) { | ||
return cleanPath(paths.filter(Boolean).join('/')) | ||
return cleanPath( | ||
paths | ||
.filter((val) => { | ||
return val !== undefined | ||
}) | ||
.join('/'), | ||
) | ||
} | ||
@@ -197,3 +203,3 @@ | ||
path?: string | ||
params: any | ||
params: Record<string, unknown> | ||
leaveWildcards?: boolean | ||
@@ -200,0 +206,0 @@ leaveParams?: boolean |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1404146
17385