Skip to content

Commit 13e6b8e

Browse files
committed
Move payload to ActionFunctionArgs
1 parent 42c72aa commit 13e6b8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/router/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export type Submission = {
115115
interface DataFunctionArgs {
116116
request: Request;
117117
params: Params;
118-
payload: any;
119118
context?: any;
120119
}
121120

@@ -127,7 +126,9 @@ export interface LoaderFunctionArgs extends DataFunctionArgs {}
127126
/**
128127
* Arguments passed to action functions
129128
*/
130-
export interface ActionFunctionArgs extends DataFunctionArgs {}
129+
export interface ActionFunctionArgs extends DataFunctionArgs {
130+
payload: any;
131+
}
131132

132133
/**
133134
* Loaders and actions can return anything except `undefined` (`null` is a

0 commit comments

Comments
 (0)