Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

comparison.md

76 lines9.8 KB

Before you commit to a new tool, it's always nice to know how it stacks up against the competition!

This comparison table strives to be as accurate and as unbiased as possible. If you use any of these libraries and feel the information could be improved, feel free to suggest changes (with notes or evidence of claims) using the "Edit this page on Github" link at the bottom of this page.

Feature/Capability Key:

  • βœ… 1st-class, built-in, and ready to use with no added configuration or code
  • 🟒 Full Support as an official plugin or addon package
  • 🟑 Partial Support
  • πŸ”Ά Possible, but requires custom code/implementation
  • πŸ›‘ Not officially supported
React LocationReact Router DOM (Website)
Github Repo / Stars
Their Comparison(none)
Bundle Size (react-location) (react-router-dom)
- (history)
General
Nested / Layout Routesβœ…βœ…
Path Paramsβœ…βœ…
JSX Routes🟒 react-location-elements-to-routesβœ…
Code-Splittingβœ…βœ…
Ranked Routes🟒 react-location-ranked-routesβœ…
Active Link Customizationβœ…βœ…
SSRπŸ›‘βœ…
Route Mount/Transition/Unmount Eventsβœ…πŸ›‘
Official Devtools🟒 react-location-devtoolsπŸ›‘
Search Params
Basic Search Paramsβœ…βœ…
Search Param Hooksβœ…βœ…
Integrated <Link/> search param APIβœ…πŸŸ‘ (search-string only via the to prop)
Integrated useNavigate search param APIβœ…πŸŸ‘ (search-string only via the search property)
JSON Search Paramsβœ…πŸ”Ά
Search Param Stabilization (Structural Sharing)βœ…πŸ”Ά
Custom Search Param parsing/serializationβœ…πŸ”Ά
Queued/Batched Search Param Updatesβœ…πŸ›‘
Search-Based Route Matchingβœ…πŸŸ‘ (string/Regex only?)
Search Param Compression🟒 react-location-jsurlπŸ”Ά
Async Routing, Loaders & Data
Route Loaders & Data (parallelized and blocking)βœ…πŸ›‘
Basic Route Data Cachingβœ…πŸ›‘
Route Loader Prefetchingβœ…πŸ›‘
External Caching Interfaceβœ…πŸ›‘
Route Error Elementsβœ…πŸ›‘
Route Pending Elementsβœ…πŸ›‘
Pending Timing (delay, min-show)βœ…πŸ›‘