I have this warning inside this useEffect:
useEffect(() => {
setProyecto({
...proyecto,
urlFirebase: urlImg
})
}, [urlImg]);
React Hook useEffect has a missing dependency: 'project'. Either include it or remove the dependency array. You can also do a functional update 'setProject(p => ...)' if you only need 'project' in the 'setProject' call react-hooks/exhaustive-deps
I tried to do what appears in the warning but it does not replace the value I want, it removes everything from the state that is an object and leaves it as a String with the url. This is the useEffect I made
useEffect(() => {
setProyecto(p => p.urlFirebase = urlImg);
}, [urlImg]);