Cant seem to get my head around the right approach for this. Want to get ride of the warning and not by having the inline ignore warning comment. Probably useCallback is in the direction of the solution. I just want to check only once when functional component gets initialised wether if the Store needs, conditionally. Thats all.
Line 72:6: React Hook useEffect has missing dependencies: 'dispatch' and 'storedSlugItems'. Either include them or remove the dependency array react-hooks/exhaustive-deps
useEffect(() => {
if (storedSlugItems.length > 0) {
dispatch(setSlugItems(storedSlugItems));
}
// eslint-disable-next-line
}, []);