Open SimonFinney opened 2 years ago
ESLint was surfacing the following error in Events/index.js:
Events/index.js
React Hook useEffect has a missing dependency: 'addToast'. Either include it or remove the dependency array
As addToast should only run once, the dependency array should remain empty — this PR ignores the lint warning.
addToast
ESLint was surfacing the following error in
Events/index.js
:React Hook useEffect has a missing dependency: 'addToast'. Either include it or remove the dependency array
As
addToast
should only run once, the dependency array should remain empty — this PR ignores the lint warning.