File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ export type ProcessedTree<
535535 /** a mini route tree generated from the flat `routeMasks` list */
536536 masksTree : AnySegmentNode < TFlat > | null
537537 /** @deprecated keep until v2 so that `router.matchRoute` can keep not caring about the actual route tree */
538- singleCache : Map < any , AnySegmentNode < TSingle > >
538+ singleCache : LRUCache < string , AnySegmentNode < TSingle > >
539539 /** a cache of route matches from the `segmentTree` */
540540 matchCache : LRUCache < string , ReturnType < typeof findMatch < TTree > > >
541541 /** a cache of route matches from the `masksTree` */
@@ -675,7 +675,7 @@ export function processRouteTree<
675675 sortTreeNodes ( segmentTree )
676676 const processedTree : ProcessedTree < TRouteLike , any , any > = {
677677 segmentTree,
678- singleCache : new Map ( ) ,
678+ singleCache : createLRUCache < string , AnySegmentNode < any > > ( 1000 ) ,
679679 matchCache : createLRUCache <
680680 string ,
681681 ReturnType < typeof findMatch < TRouteLike > >
You can’t perform that action at this time.
0 commit comments