@tanstack/router-core 1.121.0 → 1.121.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.121.0",
3
+ "version": "1.121.2",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -38,6 +38,7 @@ import type {
38
38
  RouterHistory,
39
39
  } from '@tanstack/history'
40
40
  import type {
41
+ Awaitable,
41
42
  ControlledPromise,
42
43
  NoInfer,
43
44
  NonNullableUpdater,
@@ -290,12 +291,10 @@ export interface RouterOptions<
290
291
  /**
291
292
  * A function that will be called when the router is hydrated.
292
293
  *
293
- * The return value of this function will be serialized and stored in the router's dehydrated state.
294
- *
295
294
  * @link [API Docs](https://tanstack.com/router/latest/docs/framework/react/api/router/RouterOptionsType#hydrate-method)
296
295
  * @link [Guide](https://tanstack.com/router/latest/docs/framework/react/guide/external-data-loading#critical-dehydrationhydration)
297
296
  */
298
- hydrate?: (dehydrated: TDehydrated) => void
297
+ hydrate?: (dehydrated: TDehydrated) => Awaitable<void>
299
298
  /**
300
299
  * An array of route masks that will be used to mask routes in the route tree.
301
300
  *