You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure I completely understand what that entails for use-shopping-cart. Do you want to allow the developer to pass in a string that would be the LocalStorage key? So you'd have
exportfunctionCartProvider({ namespace='cart-values',/* other props */}){/* other code */const[cartValues,cartValuesDispatch]=useLocalStorageReducer(namespace,cartValuesReducer,cartValuesInitialState)
We could also just call it storageKey instead of namespace if that'd make it more obvious what it was doing.
With Stripe Connect apps, it would be ideal to have a way to separate carts for shoppers based on which merchants they are purchasing from
The text was updated successfully, but these errors were encountered: