We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2237df commit 960de42Copy full SHA for 960de42
react/useFormStatus/src/App.tsx
@@ -1,13 +1,12 @@
1
-// @ts-expect-error the error will not appear after react 19 release
2
import { useFormStatus } from "react-dom";
3
4
const Componente = () => {
5
const { pending } = useFormStatus();
6
return <button type="submit">FORM IS {pending || "NOT"} PENDING</button>;
7
};
8
9
-function pausa(ms) {
10
- return new Promise((resolve) => setTimeout(resolve, ms));
+function pausa(milliseconds: number) {
+ return new Promise((resolve) => setTimeout(resolve, milliseconds));
11
}
12
13
const action = async () => {
react/useSyncExternalStore/prova.js
@@ -0,0 +1,4 @@
+console.log("ciaone");
+console.log("ciaone1");
+console.log("ciaone2");
+console.log("ciaone3");
0 commit comments