Skip to content

Commit ccb0b34

Browse files
committed
chore: fix duplicate "the" typo across router packages
1 parent 51029a0 commit ccb0b34

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/react-router/src/fileRoute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export function FileRouteLoader<
183183
) => TLoaderFn {
184184
if (process.env.NODE_ENV !== 'production') {
185185
console.warn(
186-
`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`,
186+
`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`,
187187
)
188188
}
189189
return (loaderFn) => loaderFn as any

packages/router-core/src/load-matches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ const runLoader = async (
713713
const pendingPromise = match._nonReactive.minPendingPromise
714714
if (pendingPromise) await pendingPromise
715715

716-
// Last but not least, wait for the the components
716+
// Last but not least, wait for the components
717717
// to be preloaded before we resolve the match
718718
if (route._componentsPromise) await route._componentsPromise
719719
inner.updateMatch(matchId, (prev) => ({

packages/router-core/tests/path.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ describe('matchPathname', () => {
711711
expectedMatchedParams: { id: '123' },
712712
},
713713
{
714-
name: 'should match and return the the splat param',
714+
name: 'should match and return the splat param',
715715
input: '/users/123',
716716
matchingOptions: {
717717
to: '/users/$',

packages/solid-router/src/fileRoute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class FileRoute<
148148

149149
/**
150150
@deprecated It's recommended not to split loaders into separate files.
151-
Instead, place the loader function in the the main route file, inside the
151+
Instead, place the loader function in the main route file, inside the
152152
`createFileRoute('/path/to/file)(options)` options.
153153
*/
154154
export function FileRouteLoader<
@@ -173,7 +173,7 @@ export function FileRouteLoader<
173173
) => TLoaderFn {
174174
if (process.env.NODE_ENV !== 'production') {
175175
console.warn(
176-
`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`,
176+
`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`,
177177
)
178178
}
179179
return (loaderFn) => loaderFn as any

packages/vue-router/src/fileRoute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class FileRoute<
148148

149149
/**
150150
@deprecated It's recommended not to split loaders into separate files.
151-
Instead, place the loader function in the the main route file, inside the
151+
Instead, place the loader function in the main route file, inside the
152152
`createFileRoute('/path/to/file)(options)` options.
153153
*/
154154
export function FileRouteLoader<
@@ -173,7 +173,7 @@ export function FileRouteLoader<
173173
) => TLoaderFn {
174174
if (process.env.NODE_ENV !== 'production') {
175175
console.warn(
176-
`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`,
176+
`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`,
177177
)
178178
}
179179
return (loaderFn) => loaderFn as any

0 commit comments

Comments
 (0)