Skip to content

fix infinite loop in useEffect and add empty cart #53

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mattpauls
Copy link

@mattpauls mattpauls commented Feb 19, 2023

Pass an empty array to useEffect() so it only cleans up once (mount and unmount). Addresses #4
Also add "empty cart" to address #5. Should've created a new branch to separate these, still learning git :)

@mattpauls mattpauls changed the title fix infinite loop in useEffect() fix infinite loop in useEffect and add empty cart Feb 20, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant