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
#5874Open
Simple Review

refactor(router-core): interpolatePath can cache the parsed path template

by SheraffNov 15, 2025
View on GitHub

Summary

This pull request optimizes the `interpolatePath` function by introducing caching for parsed path templates. This aims to improve performance by avoiding redundant parsing when the same path is interpolated multiple times, especially in frequently used routing functions.

Changes

+58 additions-25 deletions

Impact Areas

PerformanceRouting Core