The goal here is to make it so that whenever the site loads - at the time of componentDidMount for the <Routes /> component, when loadInitialData is called, we should load carts into our redux state for logged in users. This set of changes also makes it so that when someone logs in - their carts get loaded at that time.
The goal here is to make it so that whenever the site loads - at the time of
componentDidMount
for the<Routes />
component, when loadInitialData is called, we should load carts into our redux state for logged in users. This set of changes also makes it so that when someone logs in - their carts get loaded at that time.