openeew-dashboard icon indicating copy to clipboard operation
openeew-dashboard copied to clipboard

chore: disable false positive lint warning

Open SimonFinney opened this issue 4 years ago • 0 comments

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.

SimonFinney avatar Oct 29 '21 16:10 SimonFinney