Hello,
Currently my project has a cloud function that queries all users and returns results.
I use the results to render wallet addresses to a profile card component.
The profiles load properly on localhost, but not in production. During deployment on Netlify, this message is logged: 20:6 Warning: React Hook useEffect has a missing dependency: 'fetch'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
Here is the code:
const [experts, setExperts] = useState(null);
const { fetch } = useMoralisCloudFunction("getExperts");
useEffect(() => {
fetch({
onSuccess: (data) => setExperts(data),
});
}, []);
console.log(experts);
Thank you.