#12455·react-router

从 `route.ts` 重新导出的 `default` 破坏了 `{ loaderData }` 组件属性的传递

作者: nowells创建于 2024年12月3日更新于 2026年9月12日
标签bugfeat:typescriptpkg:@react-router/dev

When re-exporting a component from a route, it should still allow {loaderData} props to work (and not require useLoaderData).

This currently works:

内容来源: remix-run/react-router