Skip to content

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

Open
@joseamietta

Description

@joseamietta

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

Screencast.from.2025-03-12.14-14-03.mp4

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
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions