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

Feature: Update/Persist State When Data Changes - Cart and Checkout #54

Open
6 tasks done
larkinds opened this issue Sep 11, 2023 · 1 comment
Open
6 tasks done

Comments

@larkinds
Copy link
Owner

larkinds commented Sep 11, 2023

Overview
When a customer adds products to the cart, we want the cart to reflect those choices. Further, if a customer edits or deletes items from the cart, relevant areas of the cart and the checkout page should reflect those changes. Integrate the cart and checkout pages with state persisted in the relevant reducers, and use the dispatch/actions to allow the user to make changes.

This issue depends on #52, #51, #43, and #44 being finished before it can be implemented.

Actions

  • Pass the reducers’ state and dispatch function down through props
  • Hook up the components
    • Use the reducers’ state where needed
    • Use dispatch/actions where needed to update state
  • Persist/update this data with our localStorage hooks
  • You’ve checked that you’ve followed the Rules of Hook

Resources
React's Documentation on Reducers

@larkinds larkinds changed the title Update State When Data Changes - Cart and Checkout Feature: Update State When Data Changes - Cart and Checkout Sep 11, 2023
@larkinds larkinds changed the title Feature: Update State When Data Changes - Cart and Checkout Feature: Update/Persist State When Data Changes - Cart and Checkout Sep 11, 2023
@pearlescence-m pearlescence-m self-assigned this Oct 10, 2023
@larkinds
Copy link
Owner Author

larkinds commented Jan 5, 2024

@pearlescence-m Is this issue closed? If so, close it on out and congrats!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants