Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-router/src/fileRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function FileRouteLoader<
) => TLoaderFn {
if (process.env.NODE_ENV !== 'production') {
console.warn(
`Warning: FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`,
`Warning: FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`,
)
}
return (loaderFn) => loaderFn as any
Expand Down
2 changes: 1 addition & 1 deletion packages/router-core/src/load-matches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ const runLoader = async (
const pendingPromise = match._nonReactive.minPendingPromise
if (pendingPromise) await pendingPromise

// Last but not least, wait for the the components
// Last but not least, wait for the components
// to be preloaded before we resolve the match
if (route._componentsPromise) await route._componentsPromise
inner.updateMatch(matchId, (prev) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/router-core/tests/path.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ describe('matchPathname', () => {
expectedMatchedParams: { id: '123' },
},
{
name: 'should match and return the the splat param',
name: 'should match and return the splat param',
input: '/users/123',
matchingOptions: {
to: '/users/$',
Expand Down
4 changes: 2 additions & 2 deletions packages/solid-router/src/fileRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class FileRoute<

/**
@deprecated It's recommended not to split loaders into separate files.
Instead, place the loader function in the the main route file, inside the
Instead, place the loader function in the main route file, inside the
`createFileRoute('/path/to/file)(options)` options.
*/
export function FileRouteLoader<
Expand All @@ -173,7 +173,7 @@ export function FileRouteLoader<
) => TLoaderFn {
if (process.env.NODE_ENV !== 'production') {
console.warn(
`Warning: FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`,
`Warning: FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`,
)
}
return (loaderFn) => loaderFn as any
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-router/src/fileRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class FileRoute<

/**
@deprecated It's recommended not to split loaders into separate files.
Instead, place the loader function in the the main route file, inside the
Instead, place the loader function in the main route file, inside the
`createFileRoute('/path/to/file)(options)` options.
*/
export function FileRouteLoader<
Expand All @@ -173,7 +173,7 @@ export function FileRouteLoader<
) => TLoaderFn {
if (process.env.NODE_ENV !== 'production') {
console.warn(
`Warning: FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`,
`Warning: FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the main route file, inside the \`createFileRoute('/path/to/file')(options)\` options`,
)
}
return (loaderFn) => loaderFn as any
Expand Down