larkinds / recurse-randomice

A webstore for a hypothetical ice cream store that combines adjectives and nouns for silly flavors
MIT License
4 stars 2 forks source link

useLocalStorage + useReducer + useContext #81

Closed pearlescence-m closed 11 months ago

pearlescence-m commented 1 year ago

In this PR I refactored and merged all the code we had on these three topics. The working version can be applied to Cart, Checkout, Single Product page and Hall of Fame. The resulting local storage hooks are used in 2 contexts: user and cart, but they are reusable could be potentially applied to the new contexts.

pearlescence-m commented 1 year ago

@larkinds hi! I fixed all the requested changes and wanted to ask if you have any other comments. Otherwise, we might need this to be approved and merged for the next issues.