Skip to content

Commit

Permalink
Fix experimantal useFormStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
zaiste committed Oct 26, 2023
1 parent ca5bb8e commit 067d063
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/lodash-es": "4.17.10",
"@types/node": "20.8.2",
"@types/react": "18.2.27",
"@types/react-dom": "18.2.10",
"@types/react-dom": "18.2.14",
"@types/url-join": "4.0.1",
"@typescript-eslint/eslint-plugin": "6.9.0",
"@typescript-eslint/parser": "6.9.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/(main)/products/[slug]/AddButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { experimental_useFormStatus as useFormStatus } from "react-dom";
import { useFormStatus } from "react-dom";

export function AddButton({ disabled }: { disabled?: boolean }) {
const { pending } = useFormStatus();
Expand Down

0 comments on commit 067d063

Please sign in to comment.