From ccb0b34bb906884f7d827e96fde0b01f165edd43 Mon Sep 17 00:00:00 2001 From: dfedoryshchev Date: Sat, 2 May 2026 11:28:41 +0100 Subject: [PATCH] chore: fix duplicate "the" typo across router packages --- packages/react-router/src/fileRoute.ts | 2 +- packages/router-core/src/load-matches.ts | 2 +- packages/router-core/tests/path.test.ts | 2 +- packages/solid-router/src/fileRoute.ts | 4 ++-- packages/vue-router/src/fileRoute.ts | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/react-router/src/fileRoute.ts b/packages/react-router/src/fileRoute.ts index 3d2adef8332..46b96240a47 100644 --- a/packages/react-router/src/fileRoute.ts +++ b/packages/react-router/src/fileRoute.ts @@ -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 diff --git a/packages/router-core/src/load-matches.ts b/packages/router-core/src/load-matches.ts index 275fd70c60d..da2d0244a6e 100644 --- a/packages/router-core/src/load-matches.ts +++ b/packages/router-core/src/load-matches.ts @@ -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) => ({ diff --git a/packages/router-core/tests/path.test.ts b/packages/router-core/tests/path.test.ts index 2a35f448492..4e494122098 100644 --- a/packages/router-core/tests/path.test.ts +++ b/packages/router-core/tests/path.test.ts @@ -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/$', diff --git a/packages/solid-router/src/fileRoute.ts b/packages/solid-router/src/fileRoute.ts index 26b8a4a07ac..afed9eae9be 100644 --- a/packages/solid-router/src/fileRoute.ts +++ b/packages/solid-router/src/fileRoute.ts @@ -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< @@ -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 diff --git a/packages/vue-router/src/fileRoute.ts b/packages/vue-router/src/fileRoute.ts index 617673a7583..79902b87812 100644 --- a/packages/vue-router/src/fileRoute.ts +++ b/packages/vue-router/src/fileRoute.ts @@ -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< @@ -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