@tanstack/router-core 1.129.9 → 1.130.0
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/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +10 -0
- package/dist/esm/router.d.ts +10 -0
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +11 -0
package/dist/cjs/router.d.cts
CHANGED
|
@@ -306,6 +306,16 @@ export interface RouterOptions<TRouteTree extends AnyRoute, TTrailingSlashOption
|
|
|
306
306
|
* @default ['window']
|
|
307
307
|
*/
|
|
308
308
|
scrollToTopSelectors?: Array<string | (() => Element | null | undefined)>;
|
|
309
|
+
/**
|
|
310
|
+
* When `true`, disables the global catch boundary that normally wraps all route matches.
|
|
311
|
+
* This allows unhandled errors to bubble up to top-level error handlers in the browser.
|
|
312
|
+
*
|
|
313
|
+
* Useful for testing tools (like Storybook Test Runner), error reporting services,
|
|
314
|
+
* and debugging scenarios where you want errors to reach the browser's global error handlers.
|
|
315
|
+
*
|
|
316
|
+
* @default false
|
|
317
|
+
*/
|
|
318
|
+
disableGlobalCatchBoundary?: boolean;
|
|
309
319
|
}
|
|
310
320
|
export interface RouterState<in out TRouteTree extends AnyRoute = AnyRoute, in out TRouteMatch = MakeRouteMatchUnion> {
|
|
311
321
|
status: 'pending' | 'idle';
|
package/dist/esm/router.d.ts
CHANGED
|
@@ -306,6 +306,16 @@ export interface RouterOptions<TRouteTree extends AnyRoute, TTrailingSlashOption
|
|
|
306
306
|
* @default ['window']
|
|
307
307
|
*/
|
|
308
308
|
scrollToTopSelectors?: Array<string | (() => Element | null | undefined)>;
|
|
309
|
+
/**
|
|
310
|
+
* When `true`, disables the global catch boundary that normally wraps all route matches.
|
|
311
|
+
* This allows unhandled errors to bubble up to top-level error handlers in the browser.
|
|
312
|
+
*
|
|
313
|
+
* Useful for testing tools (like Storybook Test Runner), error reporting services,
|
|
314
|
+
* and debugging scenarios where you want errors to reach the browser's global error handlers.
|
|
315
|
+
*
|
|
316
|
+
* @default false
|
|
317
|
+
*/
|
|
318
|
+
disableGlobalCatchBoundary?: boolean;
|
|
309
319
|
}
|
|
310
320
|
export interface RouterState<in out TRouteTree extends AnyRoute = AnyRoute, in out TRouteMatch = MakeRouteMatchUnion> {
|
|
311
321
|
status: 'pending' | 'idle';
|