diff --git a/.eslintrc b/.eslintrc index 16e6d44..dba9fe2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -29,7 +29,7 @@ ], "cypress/no-unnecessary-waiting": "off", "react-hooks/rules-of-hooks": "error", - "react-hooks/exhaustive-deps": "error", + "react-hooks/exhaustive-deps": "warn", "react/display-name": "warn", "react/prop-types": "off", "no-console": ["error"], diff --git a/src/useCreateWaku.ts b/src/useCreateWaku.ts index 688f3e0..a55adbe 100644 --- a/src/useCreateWaku.ts +++ b/src/useCreateWaku.ts @@ -50,7 +50,7 @@ const useCreateNode = ( return () => { cancelled = true; }; - }, [factory, options, protocols, setNode, setLoading, setError]); + }, []); return { node,