Multiple Carts in one app for each unique store on the app

Hi there,

I am looking for guidance on how to create many (unlimited) unique carts in my app for each shop on the app which a user purchases an item from.

I have created an app state variable for the cart items and cart value, however, this way of doing it only provides me with one cart of all items from all shops, and provides the total cart value across all shops.

As like on the Uber Eats app, a user can see their cart specific for that restaurant only and the cart value specific to that restaurant. I would like to create the same functionality.

Any guidance will be much appreciated.

Thanks in advance,๐Ÿ˜€

2 replies