pwa-studio
pwa-studio copied to clipboard
[bug]: Wishlist pagination issue to display more than 2 pages
Describe the bug
If a customer have 2 wihslist with more than 40 items (graphql query paginate each 20 items) When load more, after second page the talon reset page state and execute the query with the same current page, in this case, page number 2.
To reproduce
Steps to reproduce the behavior:
- You must enable multiple wishlist from backend
- Sign in and add more than 40 products for each list
- Go to wishlist page and show the second list and paginates to reproduce the bug
Expected behavior
Normal funcionatily as a paginated list
Screenshots
https://github.com/user-attachments/assets/735d360d-7193-40cc-a5da-edc213a7b6cb
Possible solutions
The talon reset the page state using an useEffect. Remove the setPage inside the useEffect.
Please complete the following device information:
- Device [Notebook]:
- Browser [Chrome]:
- Browser Version [Version 132.0.6834.110 (Official Build) (64-bit)]:
- Magento Version [Adobe Commerce 2.4.7]:
Please let us know what packages this bug is in regards to:
- [ ]
venia-concept - [ ]
venia-ui - [ ]
pwa-buildpack - [x]
peregrine - [ ]
pwa-devdocs - [ ]
upward-js - [ ]
upward-spec - [ ]
create-pwa
Hi @joseamietta. 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.
@magento I am working on this
@adobe export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3534 is successfully created for this GitHub issue.