Skip to content

Commit

Permalink
Fix useAction Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
timoclsn committed Oct 31, 2023
1 parent c1a6b43 commit 54bbe65
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/resources/lib/serverActions/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,9 @@ export const useAction = <
);

const reset = useCallback(() => {
() => {
dispatch({
type: 'RESET',
});
};
dispatch({
type: 'RESET',
});
}, []);

return {
Expand Down

1 comment on commit 54bbe65

@vercel
Copy link

@vercel vercel bot commented on 54bbe65 Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.