Skip to content

Inconsitent cart items when using browser's back and forward navigation #1691

Open
@pkubwiraBixlers

Description

@pkubwiraBixlers

What is the location of your example repository?

https://hydrogen.shop/cart (shopify hydrogen demo store)

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

Not sure

What version of Remix are you using?

Not sure

Steps to Reproduce

when you add an item to the bag and go to the "/cart" route and remove the item from cart (the number of items in the cart is 0) if you use the browser's navigation button to go back to the whatever page you were on before and then use the browser to go forward (going back to the cart route) the item you previously deleted will be there and you can repeat this process indefinitely.

Expected Behavior

the removed item should not be back in the cart when you use the browser to forward navigate back to the cart becaude it had already been removed.

Actual Behavior

item comes back in the cart after having been removed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions