Skip to content

Commit 50a7dba

Browse files
committed
refactor(router-core): remove dupricated routeNeedsPreload function
1 parent 120ba3e commit 50a7dba

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/router-core/src/router.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,15 +2477,6 @@ export const componentTypes = [
24772477
'notFoundComponent',
24782478
] as const
24792479

2480-
function routeNeedsPreload(route: AnyRoute) {
2481-
for (const componentType of componentTypes) {
2482-
if ((route.options[componentType] as any)?.preload) {
2483-
return true
2484-
}
2485-
}
2486-
return false
2487-
}
2488-
24892480
interface RouteLike {
24902481
id: string
24912482
isRoot?: boolean

0 commit comments

Comments
 (0)