Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product Fetch is Causing Infinite Loop #4

Open
1 task
sbmsr opened this issue May 1, 2022 · 0 comments
Open
1 task

Product Fetch is Causing Infinite Loop #4

sbmsr opened this issue May 1, 2022 · 0 comments
Labels
bug Something isn't working Difficulty: Easy A task that can be finished quickly Good First Issue Please start with these issues first.

Comments

@sbmsr
Copy link
Member

sbmsr commented May 1, 2022

Description

We are having issues with the product fetching in ProductTable.jsx. For some reason, useEffect is infinitely fetching new products. Can you read the effect hook documentation to help us fix this bug?

How To Reproduce

  1. Run the App Locally
  2. Open Chrome Inspector
  3. See that "Fetching Products..." is being printed infinitely
Fetch.Infinite.Loop.mov

Deliverables

  • Fix the effect hook to stop infinite loop
@sbmsr sbmsr added bug Something isn't working Difficulty: Easy A task that can be finished quickly Good First Issue Please start with these issues first. labels May 1, 2022
@sbmsr sbmsr changed the title Product Fetch is Causing Infinite Loop #1 Product Fetch is Causing Infinite Loop May 10, 2022
@sbmsr sbmsr changed the title #1 Product Fetch is Causing Infinite Loop Product Fetch is Causing Infinite Loop May 10, 2022
JunYuHuang added a commit to JunYuHuang/react-ecommerce that referenced this issue Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Difficulty: Easy A task that can be finished quickly Good First Issue Please start with these issues first.
Projects
None yet
Development

No branches or pull requests

1 participant