From 2fb5b17c4e97c81043fc64e9428417ccfb6676cc Mon Sep 17 00:00:00 2001 From: Pavan Shinde Date: Mon, 20 Apr 2026 08:31:29 +0530 Subject: [PATCH 1/2] docs(router): fix preloading option name to defaultPreloadGcTime --- docs/router/guide/preloading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/guide/preloading.md b/docs/router/guide/preloading.md index 453294ab6e0..a61b33582c8 100644 --- a/docs/router/guide/preloading.md +++ b/docs/router/guide/preloading.md @@ -20,7 +20,7 @@ Preloading in TanStack Router is a way to load a route before the user actually Preloaded route matches are temporarily cached in memory with a few important caveats: -- **Unused preloaded data is removed after 30 seconds by default.** This can be configured by setting the `defaultPreloadMaxAge` option on your router. +- **Unused preloaded data is removed after 30 seconds by default.** This can be configured by setting the `defaultPreloadGcTime` option on your router. - **Obviously, when a route is loaded, its preloaded version is promoted to the router's normal pending matches state.** If you need more control over preloading, caching and/or garbage collection of preloaded data, you should use an external caching library like [TanStack Query](https://tanstack.com/query). From 569d8440a43714521c969b4d698585d2f4055973 Mon Sep 17 00:00:00 2001 From: Pavan Shinde Date: Mon, 27 Apr 2026 07:41:00 +0530 Subject: [PATCH 2/2] Update preloaded data retention time from 30s to 30m --- docs/router/guide/preloading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/guide/preloading.md b/docs/router/guide/preloading.md index a61b33582c8..bf722e622ad 100644 --- a/docs/router/guide/preloading.md +++ b/docs/router/guide/preloading.md @@ -20,7 +20,7 @@ Preloading in TanStack Router is a way to load a route before the user actually Preloaded route matches are temporarily cached in memory with a few important caveats: -- **Unused preloaded data is removed after 30 seconds by default.** This can be configured by setting the `defaultPreloadGcTime` option on your router. +- **Unused preloaded data is removed after 30 minutes by default.** This can be configured by setting the `defaultPreloadGcTime` option on your router. - **Obviously, when a route is loaded, its preloaded version is promoted to the router's normal pending matches state.** If you need more control over preloading, caching and/or garbage collection of preloaded data, you should use an external caching library like [TanStack Query](https://tanstack.com/query).