I want to update a value in the store ONLY ONCE AT FIRST OPENING when the page is first opened using react hook. For this, I make the second parameter of useEffect '[]' empty list. Nothing prevents it from working, but I get a warning from ESLint rules: React Hook useEffect has a missing dependency: 'changeCount'. Either include it or remove the dependency array react-hooks/exhaustive-deps. How do I remove this warning?
const App = ({UserStore:{setCount, count}}) => { const changeCount = () => { setCount(); } useEffect(() => { changeCount(); },[]) return ( .. )}