Skip to content

Commit

Permalink
child route id
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
(cherry picked from commit 6c7e703)
  • Loading branch information
mcansh committed Mar 3, 2023
1 parent 98fd416 commit 41514fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/remix-dev/config/flat-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,8 @@ export function flatRoutesUniversal(
continue;
}

uniqueRouteIds.set(route.id || "/", route);

routeManifest[file] = route;
uniqueRouteIds.set(route.id || "/", route);

let childRoutes = prefixLookup.findAndRemove(routeId);
prefixLookup.add(routeId);
Expand All @@ -189,7 +188,7 @@ export function flatRoutesUniversal(

let route: ConfigRoute = {
file: childRouteFile.slice(appDirectory.length + 1),
id: fullChildRouteId,
id: childRouteId,
parentId: routeId,
path: routePath,
};
Expand Down

0 comments on commit 41514fa

Please sign in to comment.