Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Infinite loop query GetWishlistItemsForLocalField #4365

Open
1 of 8 tasks
joseamietta opened this issue Dec 26, 2024 · 2 comments
Open
1 of 8 tasks

[bug]: Infinite loop query GetWishlistItemsForLocalField #4365

joseamietta opened this issue Dec 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@joseamietta
Copy link

query GetWishlistItemsForLocalField run in loop freezed the home page

As a logged customer, I added more than 10 items in one wishlist. Then, in the home page created more than one product carousel, the query GetWishlistItemsForLocalField runs in a loop freezes the page.

To reproduce

Steps to reproduce the behavior:

  1. in the administrator, add 2 product carousel to the home page
  2. Loggin as a customer in store front
  3. Add 11 (eleven) products in one wishlist
  4. After that, go to the homepage and you'll se in the network inspector the query GetWishlistItemsForLocalField runs in a loop

Screenshots

Screenshot from 2024-12-26 15-54-12

Possible solutions

The hook useCustomerWishlistSkus is called from useCarousel and run multiple times. Move this hook outside of Carousel component

Please complete the following device information:

  • Device [e.g. iPhone6, PC, Mac, Pixel3]: Laptop
  • Browser [e.g. Chrome, Safari]: Chome
  • Browser Version [e.g. 22]: Version 131.0.6778.108 (Official Build) (64-bit)
  • Magento Version [e.g Adobe Commerce 2.4]: 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
@joseamietta joseamietta added the bug Something isn't working label Dec 26, 2024
Copy link

m2-assistant bot commented Dec 26, 2024

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.

@joseamietta
Copy link
Author

@magento I am working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant