Skip to content

Commit 1233c24

Browse files
committed
should be possible to now pass in excluding routes
1 parent ffb9664 commit 1233c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/shared/utils/routerUtils/routerUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function routeWithSubRoutes(route, index) {
2626

2727
export function preloadRoutes(routes, excludedRoutes) {
2828
routes.forEach((route) => {
29-
if (!excludedRoutes.includes(route.componentPath)) {
29+
if (!excludedRoutes || !excludedRoutes?.includes(route.componentPath)) {
3030
route.Component.preload();
3131
}
3232
});

0 commit comments

Comments
 (0)