Skip to content

[Bug] Library.jsx useEffect has missing dependency #213

Description

@gbowne1

when the App starts, ESLint reports:

Compiled with warnings.

[eslint] 
src/components/Library/Library.jsx
  Line 418:8:  React Hook useEffect has a missing dependency: 'fetchBooksFromDB'. Either include it or remove the dependency array  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 418:8:  React Hook useEffect has a missing dependency: 'fetchBooksFromDB'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

webpack compiled with 1 warning

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions