Skip to content

Commit daf4e70

Browse files
committed
parseRouteCache is only a Map
1 parent fa294cc commit daf4e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router-core/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ export class RouterCore<
13681368
}
13691369

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

0 commit comments

Comments
 (0)