diff --git a/pages/index.jsx b/pages/index.jsx index 5062a38..06bef2e 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -14,7 +14,7 @@ export default function Home() { } = useForm(); useEffect(() => { - console.log("entro") + setArticles({ found: "pending" }); const getOtherPage = async () => { console.log(getValues("article")) @@ -29,7 +29,7 @@ export default function Home() { } } getOtherPage() - }, [page]); + }, [page, getValues]); const onSubmit = async (dataForm) => { try { @@ -56,12 +56,12 @@ export default function Home() { return ( <>
-
-
-
+
+
+
-
+
@@ -129,12 +129,12 @@ export default function Home() { })} {/* */} -
+