Fix Linter Warning #359
meganyin13 opened this issue · 0 comments
meganyin13 commented
Describe the bug
#359 warning: The onSave
function makes the dependencies of useEffect Hook (at line 206) change on every render. To fix this, wrap the 'onSave' definition into its own useCallback() Hook react-hooks/exhaustive-deps
To Reproduce
Run yarn lint.
Environment (optional)
- Browser Chrome
- OS: macOS