Explorar el Código

fix useEffect missing dependency

AykutSarac hace 2 años
padre
commit
c173a140f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/pages/widget.tsx

+ 1 - 1
src/pages/widget.tsx

@@ -52,7 +52,7 @@ const Widget = () => {
     }
 
     if (!inIframe()) push("/");
-  }, [query?.json]);
+  }, [query?.json, push]);
 
   return (
     <div>