Skip to content

Commit

Permalink
add names for hoc wrappers to enable HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Sep 5, 2024
1 parent 56f08b9 commit e0344f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-router/lib/hocs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function withComponentProps(
actionData: unknown;
}>
) {
return function () {
return function Wrapped() {
const props = {
params: useParams(),
loaderData: useLoaderData(),
Expand All @@ -21,7 +21,7 @@ export function withComponentProps(
export function withHydrateFallbackProps(
HydrateFallback: React.ComponentType<{ params: unknown }>
) {
return function () {
return function Wrapped() {
const props = {
params: useParams(),
};
Expand All @@ -36,7 +36,7 @@ export function withErrorBoundaryProps(
actionData: unknown;
}>
) {
return function () {
return function Wrapped() {
const props = {
params: useParams(),
loaderData: useLoaderData(),
Expand Down

0 comments on commit e0344f9

Please sign in to comment.