jackcrane / rn-mts-scanner

0 stars 0 forks source link

Change cart management/saving to local storage to a hook #22

Open jackcrane opened 3 years ago

jackcrane commented 3 years ago

In an effort to reduce code duplicity and make the app more resilient to crashes, switch the cart saving system from happening whenever there is a change to happening in a UseEffect hook with cart as a dependency.