Open kashinoki38 opened 6 months ago
Commenting as this is an interesting issue I'd like to try taking on. The general concept of cart persistence and merging across guest and logged-in sessions is a common feature in modern e-commerce.
We need to define and implement the expected behavior for the shopping cart when users interact with it across different states: as guests, logged-in users, and when transitioning between these states (e.g., adding items as a guest and then logging in, or logging out while having items in the cart).
Items added to the cart while signed in will be refreshed when you sign out and then sign back in.
Reproduce with the following steps:
Cause:
On the step3 (Sign out User), cart will be newly created as guest user. On the step4 newly created cart will be used for signed in user.
Ideal behavior:
On the step4,