Home

tanstack/router

Status:Indexed
Analyzed Nov 17, 202510K+ starsTypeScript

🤖 A client-first, server-capable, fully type-safe router and full-stack framework for the web (React and more).

Back to Pull Requests
#5878Closed
Simple Review

refactor(router-core): findSingleMatch caches the trees it generate in an LRUCache, not a Map

by SheraffNov 16, 2025
View on GitHub

Summary

This pull request corrects a minor oversight by replacing a `Map` with an `LRUCache` for caching route trees in the `findSingleMatch` function. This ensures consistent memory management with other caching mechanisms in the router.

Changes

+2 additions-2 deletions

Impact Areas

PerformanceInternal Caching