pwa-studio
pwa-studio copied to clipboard
[bug]: PDP add to cart action will refetch the query getProductDetailForProductPage
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:
- Go to 'PDP'
- Open the network tab of your browser
- Click on 'Add to cart'
- See the query
getProductDetailForProductPagere-call
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
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
Hi @huykon. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
@adobe export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3365 is successfully created for this GitHub issue.