gbowne1 / codebooker

This is a book recommendation app created with React 18.2 and MUI for coders/programmers looking for reccomendations to books on programming/coding to read

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Library.jsx has some useEffect issues after today's merge(s).

gbowne1 opened this issue · comments

Compiled with warnings.

[eslint]
src/components/Library/Library.jsx
Line 337:8: React Hook React.useEffect has a missing dependency: 'myRows'. Either include it or remove the dependency array. You can also do a functional update 'setMyRows(m => ...)' if you only need 'myRows' in the 'setMyRows' call react-hooks/exhaustive-deps

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in [eslint]
src/components/Library/Library.jsx
Line 337:8: React Hook React.useEffect has a missing dependency: 'myRows'. Either include it or remove the dependency array. You can also do a functional update 'setMyRows(m => ...)' if you only need 'myRows' in the 'setMyRows' call react-hooks/exhaustive-deps

webpack compiled with 1 warning

Hi @gbowne1, let me resolve this error. I think it came from my last PR

@gbowne1 I have made a PR that resolves this issue. Please review.