Skip to content

[BUG] useEffect has a missing dependency #143

Description

@gbowne1

After the recent merges and features, I am now getting this warning/error:

[eslint]
src/pages/Home/Home.jsx
Line 58:8: React Hook useEffect has a missing dependency: 'location.state.loggin'. 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/pages/Home/Home.jsx
Line 58:8: React Hook useEffect has a missing dependency: 'location.state.loggin'. Either include it or remove the dependency array react-hooks/exhaustive-deps

webpack compiled with 1 warning

I thought this may be because login is misspelled loggin, but even with correcting the spelling still has a missing dep warning.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdevopsThis is a devops feature or issuefrontendWork on Frontendgood first issueGood for newcomershelp wantedExtra attention is neededquestionFurther information is requested

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions