Skip to content

Commit a9b539b

Browse files
Provide isRouteErrorResponse in react-server environments (#14166)
1 parent e7f7dff commit a9b539b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/gorgeous-dragons-hang.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+
Provide `isRouteErrorResponse` utility in `react-server` environments

packages/react-router/index-react-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export { createStaticHandler } from "./lib/router/router";
4747
export {
4848
data,
4949
matchRoutes,
50+
isRouteErrorResponse,
5051
unstable_createContext,
5152
unstable_RouterContextProvider,
5253
} from "./lib/router/utils";

0 commit comments

Comments
 (0)