Skip to content

Commit

Permalink
RouteAction returns undefined in case of error (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy committed Jul 19, 2023
1 parent 8155e70 commit 3f9961b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/start/data/createRouteAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export type RouteAction<T, U> = [
clear: () => void;
retry: () => void;
},
((vars: T) => Promise<U>) & {
((vars: T) => Promise<U | undefined>) & {
Form: T extends FormData ? ParentComponent<FormProps> : never;
url: string;
}
];
export type RouteMultiAction<T, U> = [
Submission<T, U>[] & { pending: Submission<T, U>[] },
((vars: T) => Promise<U>) & {
((vars: T) => Promise<U | undefined>) & {
Form: T extends FormData ? ParentComponent<FormProps> : never;
url: string;
}
Expand Down

0 comments on commit 3f9961b

Please sign in to comment.