Skip to content

Commit 2cb4194

Browse files
author
dannyb
committed
fixing readme typo
1 parent c09b971 commit 2cb4194

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.0",
2+
"version": "2.0.1",
33
"name": "next-server-action-hook",
44
"description": "A React hook for handling Next.js server actions on the client side with built-in loading and error states.",
55
"author": "Danny Braunstein",

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Form = ({
5252
}: {
5353
action: (formData: FormData) => Promise<string>;
5454
}) => {
55-
const [run, { error, hasError, data: name }, clearError] =
55+
const [run, {hasError, isLoading, data: name}, clearError] =
5656
useServerAction(action);
5757

5858
return (

0 commit comments

Comments
 (0)