Skip to content

Commit 89c5932

Browse files
committed
changeset
1 parent 2f593ed commit 89c5932

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.changeset/lovely-ants-laugh.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
Fix framework props for reexported components
6+
7+
Previously, when re-exporting the `default` component, `HydrateFallback`, or `ErrorBoundary` their corresponding framework props like `params`, `loaderData`, and `actionData` were not provided, causing errors at runtime.
8+
Now, React Router detects re-exports for framework components and provides their corresponding props.
9+
10+
For example, both of these now work:
11+
12+
```ts
13+
export { default } from "./other-module";
14+
```
15+
16+
```ts
17+
function Component({ params, loaderData, actionData }) {
18+
/* ... */
19+
}
20+
export { Component as default };
21+
```

0 commit comments

Comments
 (0)