Skip to content

[bug]: PDP add to cart action will refetch the query getProductDetailForProductPage #4288

Open
@huykon

Description

@huykon

Describe the bug
as the title, when we click add to cart on PDP, after added the PDP will re-render, don't know why

To reproduce

Steps to reproduce the behavior:

  1. Go to 'PDP'
  2. Open the network tab of your browser
  3. Click on 'Add to cart'
  4. See the query getProductDetailForProductPage re-call

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

image

video screenshot
Screencast from 02-07-2024 14:39:06.webm

Possible solutions

Add any ideas about possible solutions to the problem here.

Debug Report

Paste the output of yarn build:report, and any other context about the problem, here.

Please complete the following device information:

  • Device [e.g. iPhone6, PC, Mac, Pixel3]:
  • Browser [e.g. Chrome, Safari]:
  • Browser Version [e.g. 22]:
  • Magento Version [e.g Adobe Commerce 2.4]:

Please let us know what packages this bug is in regards to:

  • venia-concept
  • venia-ui
  • pwa-buildpack
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa

Metadata

Metadata

Assignees

Labels

Priority: P3bugSomething isn't workingneeds-triageA pull request or issue that needs to be triaged prior to being synced to JIRA

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions