Skip to content

Commit b0f3af3

Browse files
committed
Remove redundant checks for missing chunks
1 parent 3580350 commit b0f3af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-router/lib/dom/ssr/routes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export function createClientRoutes(
500500
let mod = await modPromise;
501501

502502
let lazyRoute: Partial<DataRouteObject> = { ...mod };
503-
if (mod.clientLoader && !route.clientLoaderModule) {
503+
if (mod.clientLoader) {
504504
let clientLoader = mod.clientLoader;
505505
lazyRoute.loader = (
506506
args: LoaderFunctionArgs,
@@ -515,7 +515,7 @@ export function createClientRoutes(
515515
});
516516
}
517517

518-
if (mod.clientAction && !route.clientActionModule) {
518+
if (mod.clientAction) {
519519
let clientAction = mod.clientAction;
520520
lazyRoute.action = (
521521
args: ActionFunctionArgs,

0 commit comments

Comments
 (0)