Skip to content

Commit

Permalink
fix: make hasErrorelement optional on types (#9394)
Browse files Browse the repository at this point in the history
* fix: make hasErrorelement optional on types

* add changeset
  • Loading branch information
brophdawg11 authored Oct 3, 2022
1 parent 718743e commit 9e9a90b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-insects-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": patch
---

fix: make hasErrorelement optional on types
4 changes: 2 additions & 2 deletions packages/react-router/lib/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IndexRouteObject {
id?: AgnosticIndexRouteObject["id"];
loader?: AgnosticIndexRouteObject["loader"];
action?: AgnosticIndexRouteObject["action"];
hasErrorBoundary: AgnosticIndexRouteObject["hasErrorBoundary"];
hasErrorBoundary?: AgnosticIndexRouteObject["hasErrorBoundary"];
shouldRevalidate?: AgnosticIndexRouteObject["shouldRevalidate"];
handle?: AgnosticIndexRouteObject["handle"];
index: true;
Expand All @@ -35,7 +35,7 @@ export interface NonIndexRouteObject {
id?: AgnosticNonIndexRouteObject["id"];
loader?: AgnosticNonIndexRouteObject["loader"];
action?: AgnosticNonIndexRouteObject["action"];
hasErrorBoundary: AgnosticNonIndexRouteObject["hasErrorBoundary"];
hasErrorBoundary?: AgnosticNonIndexRouteObject["hasErrorBoundary"];
shouldRevalidate?: AgnosticNonIndexRouteObject["shouldRevalidate"];
handle?: AgnosticNonIndexRouteObject["handle"];
index?: false;
Expand Down

0 comments on commit 9e9a90b

Please sign in to comment.