Normally ? take a warning like that , React Hook useEffect has a missing dependency: 'loadAllAbout'. Either include it or remove the dependency array react-hooks/exhaustive-deps
I have code like that but when i give [loadAllAbout] also ? get a warning
Line 15:9: The 'loadAllAbout' function makes the dependencies of useEffect Hook (at line 13) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'loadAllAbout' in its own useCallback() Hook react-hooks/exhaustive-deps
What i have to do ?
See Question&Answers more detail:os