useEffectEvent
Unanswered
English Shepherd posted this in #help-forum
English ShepherdOP
Even though I am using this Hook correctly, I am still getting the error like "React Hook useEffect has a missing dependency: 'setLoading'. Either include it or remove the dependency array. If 'setLoading' changes too often, find the parent component that defines it and wrap that definition in useCallback".
3 Replies
@English Shepherd Even though I am using this Hook correctly, I am still getting the error like "React Hook useEffect has a missing dependency: 'setLoading'. Either include it or remove the dependency array. If 'setLoading' changes too often, find the parent component that defines it and wrap that definition in useCallback".
Nile Crocodile
Pc or mobile? @English Shepherd
@Nile Crocodile Pc or mobile? <@978347779262914691>
English ShepherdOP
PC.
After I create an useEffectEvent function, it mentions that function's name and says that it should be included in the dependency or removed.