Are you using Custom states? Custom states do not persist through user sessions - if the page is refreshed or reloaded in any way the custom state will return to its default value (in your case empty)

You’ll need to use the database (or local storage but thats more advanced) to save the Cart Items even if the user is not logged in.

1 Like