issues
search
thetrevorharmon
/
gatsby-theme-shopify-manager
The easiest way to start a Shopify shop on Gatsby.
https://gatsby-theme-shopify-manager.netlify.app/
MIT License
121
stars
11
forks
source link
Loading Initial Cart State from Local Storage
#17
Closed
thetrevorharmon
closed
4 years ago
thetrevorharmon
commented
4 years ago
This PR:
Loads the initial cart state from local storage in the provider
Adds a typeguard for the shopify
Cart
type called
isCart
Adds a
getInitialCart
function to
LocalStorage
General tweaks associated with these changes
This PR:
Cart
type calledisCart
getInitialCart
function toLocalStorage