Skip to content

Commit 9e9a90b

Browse files
authored
fix: make hasErrorelement optional on types (#9394)
* fix: make hasErrorelement optional on types * add changeset
1 parent 718743e commit 9e9a90b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/calm-insects-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
fix: make hasErrorelement optional on types

packages/react-router/lib/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface IndexRouteObject {
2020
id?: AgnosticIndexRouteObject["id"];
2121
loader?: AgnosticIndexRouteObject["loader"];
2222
action?: AgnosticIndexRouteObject["action"];
23-
hasErrorBoundary: AgnosticIndexRouteObject["hasErrorBoundary"];
23+
hasErrorBoundary?: AgnosticIndexRouteObject["hasErrorBoundary"];
2424
shouldRevalidate?: AgnosticIndexRouteObject["shouldRevalidate"];
2525
handle?: AgnosticIndexRouteObject["handle"];
2626
index: true;
@@ -35,7 +35,7 @@ export interface NonIndexRouteObject {
3535
id?: AgnosticNonIndexRouteObject["id"];
3636
loader?: AgnosticNonIndexRouteObject["loader"];
3737
action?: AgnosticNonIndexRouteObject["action"];
38-
hasErrorBoundary: AgnosticNonIndexRouteObject["hasErrorBoundary"];
38+
hasErrorBoundary?: AgnosticNonIndexRouteObject["hasErrorBoundary"];
3939
shouldRevalidate?: AgnosticNonIndexRouteObject["shouldRevalidate"];
4040
handle?: AgnosticNonIndexRouteObject["handle"];
4141
index?: false;

0 commit comments

Comments
 (0)