Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cart] removeFromCart payload contains redundant data #6471

Closed
sync-by-unito bot opened this issue Oct 21, 2021 · 1 comment
Closed

[Cart] removeFromCart payload contains redundant data #6471

sync-by-unito bot opened this issue Oct 21, 2021 · 1 comment
Labels

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Oct 21, 2021

Expected result

removeFromCart payload should contain only required data, e.g.:

[{
	"id": "392efce2-5c3d-477a-8639-245dbb0d437c",
	"version": 4
}, {
	"id": "acfd8643-1560-4428-9e67-3b12b6b95798",
	"quantity": 1
}, null]

Actual result

Payload contains whole product object representation

Steps to reproduce

  1. Go to category page
  2. Add product to cart
  3. Open cart sidebar
  4. Remove product from cart
  5. Inspect request in devtools network tab
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Oct 26, 2021

@sync-by-unito sync-by-unito bot closed this as completed Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants