Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
parseRouteCache is only a Map
  • Loading branch information
Sheraff committed Aug 30, 2025
commit daf4e70fa079e202ed18f78daf1c9c42dc8961b4
2 changes: 1 addition & 1 deletion packages/router-core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ export class RouterCore<
}

/** a cache of parsed routes for `parsePathname` (e.g. `/foo/$bar` => Array<Segment>) */
private parseRouteCache: ParseRouteCache = createLRUCache(500)
private parseRouteCache: ParseRouteCache = new Map()
/** a cache of parsed pathnames for `parsePathname` (e.g. `/foo/123` => Array<string>) */
private parsePathCache: ParsePathCache = createLRUCache(500)

Expand Down
Loading