Skip to content

Commit

Permalink
chore: remove unused _module prop
Browse files Browse the repository at this point in the history
  • Loading branch information
oedotme committed Jan 20, 2023
1 parent 3c9453d commit 47dddd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/react-router/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ const generateRoutes = async () => {
element: `#_<Suspense fallback={null} children={<${capitalize(id)} />} />_#`,
loader: loader ? `#_(args: any) => ${module}.then((m) => m.Loader.apply(m.Loader, args as any))_#` : '',
action: action ? `#_(args: any) => ${module}.then((m) => m.Action.apply(m.Action, args as any))_#` : '',
errorElement: catch_ ? `#_<Suspense fallback={null} children={<${capitalize(id)}Error />} />_#` : '',
_module: module,
errorElement: errorElement ? `#_<Suspense fallback={null} children={<${capitalize(id)}Error />} />_#` : '',
}
},
patterns
Expand Down

0 comments on commit 47dddd8

Please sign in to comment.