Skip to content

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