Skip to content

Commit

Permalink
RouteAction returns undefined in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy authored Jul 6, 2023
1 parent 8cfe543 commit c6e9495
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 c6e9495

Please sign in to comment.