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

fix infinite loop in useEffect and add empty cart #53

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant