pwa-studio icon indicating copy to clipboard operation
pwa-studio copied to clipboard

[bug]: Wishlist pagination issue to display more than 2 pages

Open joseamietta opened this issue 9 months ago • 2 comments

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:

  1. You must enable multiple wishlist from backend
  2. Sign in and add more than 40 products for each list
  3. 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

joseamietta avatar Mar 12 '25 17:03 joseamietta

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.

m2-assistant[bot] avatar Mar 12 '25 17:03 m2-assistant[bot]

@magento I am working on this

joseamietta avatar Mar 12 '25 17:03 joseamietta

@adobe export issue to JIRA project PWA as Bug

glo82145 avatar Jul 17 '25 07:07 glo82145

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3534 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Jul 17 '25 07:07 github-jira-sync-bot