@tanstack/react-router 1.121.27 → 1.121.33

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.
@@ -2159,7 +2159,7 @@ A new function that accepts a single argument of type [\`RouteOptions\`](../Rout
2159
2159
  \`\`\`tsx
2160
2160
  import { createFileRoute } from '@tanstack/react-router'
2161
2161
 
2162
- export const Route = createFileRoute({
2162
+ export const Route = createFileRoute('/')({
2163
2163
  loader: () => {
2164
2164
  return 'Hello World'
2165
2165
  },
@@ -2985,7 +2985,7 @@ const searchSchema = z.object({
2985
2985
  two: z.string().optional(),
2986
2986
  })
2987
2987
 
2988
- export const Route = createFileRoute({
2988
+ export const Route = createFileRoute('/')({
2989
2989
  validateSearch: zodValidator(searchSchema),
2990
2990
  search: {
2991
2991
  middlewares: [retainSearchParams(true)],
@@ -3074,7 +3074,7 @@ const searchSchema = z.object({
3074
3074
  two: z.string().default(defaultValues.two),
3075
3075
  })
3076
3076
 
3077
- export const Route = createFileRoute({
3077
+ export const Route = createFileRoute('/')({
3078
3078
  validateSearch: zodValidator(searchSchema),
3079
3079
  search: {
3080
3080
  // strip default values
@@ -3112,7 +3112,7 @@ const searchSchema = z.object({
3112
3112
  two: z.string().default('xyz'),
3113
3113
  })
3114
3114
 
3115
- export const Route = createFileRoute({
3115
+ export const Route = createFileRoute('/')({
3116
3116
  validateSearch: zodValidator(searchSchema),
3117
3117
  search: {
3118
3118
  // remove all search params