We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a283d commit bf4ab16Copy full SHA for bf4ab16
1 file changed
packages/router-core/src/load-matches.ts
@@ -1163,11 +1163,9 @@ function preloadRouteComponents(
1163
.map((type) => (route.options[type] as any)?.preload?.())
1164
.filter(Boolean)
1165
1166
- if (preloads.length) {
1167
- return Promise.all(preloads).then(() => {})
1168
- }
+ if (preloads.length === 0) return undefined
1169
1170
- return undefined
+ return Promise.all(preloads) as any as Promise<void>
1171
}
1172
1173
export function loadRouteChunk(
0 commit comments