Skip to content

Fix: Home.jsx and Library.jsx useEffect hook missing dependency issue - #177

Merged
gbowne1 merged 1 commit into
gbowne1:masterfrom
Piyush-Deshmukh:patch-4
Sep 16, 2023
Merged

Fix: Home.jsx and Library.jsx useEffect hook missing dependency issue#177
gbowne1 merged 1 commit into
gbowne1:masterfrom
Piyush-Deshmukh:patch-4

Conversation

@Piyush-Deshmukh

Copy link
Copy Markdown
Contributor

Closes #174

Modified Files

  • Home.jsx
  • Library.jsx

Modifications

  • In Home.jsx added missing dependency location.state
  • In Library.jsx added missing dependency setFilter

@Piyush-Deshmukh Piyush-Deshmukh changed the title Fix: Home.jsx and Library.jsx useEffect hook issue Fix: Home.jsx and Library.jsx useEffect hook missing dependency issue Sep 15, 2023
@gbowne1 gbowne1 added this to the Frontend milestone Sep 15, 2023
@gbowne1 gbowne1 added bug Something isn't working frontend Work on Frontend code-review This is ready for code review needs-review This issue, discussion or PR needs review labels Sep 15, 2023

@LOGESH-B LOGESH-B left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hii @Piyush-Deshmukh

Thanks for your contribution✌️
Tested Locally.Removes the warning at home.jsx and library.jsx
Approving for merge

@gbowne1 gbowne1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Checked out this change locally for testing and review for merging
  • Manually reviewed this change for syntax and other errors

Looks like this change works as expected, fixing the missing dependency for the useEffect hook. There are no more warnings about this in the console, etc.

Approving for merge. Thank you for the opportunity to review your PR for merging @Piyush-Deshmukh

@BlackBond06 BlackBond06 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested change locally. This PR fixes the useEffect missing dependency warning. Approving for merge. Thank you for the opportunity to review your PR.

@gbowne1
gbowne1 merged commit 6b8db3f into gbowne1:master Sep 16, 2023
@Piyush-Deshmukh
Piyush-Deshmukh deleted the patch-4 branch September 16, 2023 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working code-review This is ready for code review frontend Work on Frontend needs-review This issue, discussion or PR needs review

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] Home.jsx and Library.jsx has an issue with the hook useEffect and missing dependency

4 participants