Open Jackiiiii opened 3 months ago
Hi @Jackiiiii,
Are there any errors in the console?
If i start the server, in the console i see no error, or do you mean somewhere else?
Right-click on the page and select inspect
and then go to the console
tab.
If you want to GraphQL endpoint I'll take a look.
@scottyzen I managed to reproduce the problem! My account waits forever the cart to load
defineNuxtPlugin in plugin.init.ts has this code:
// Wait for the user to interact with the page before refreshing the cart, this is helpful to prevent excessive requests to the server
let initialised = false;
const eventsToFireOn = ['mousedown', 'keydown', 'touchstart', 'scroll', 'wheel', 'click', 'resize', 'mousemove', 'mouseover'];
Video:
https://github.com/user-attachments/assets/3cfd9e55-755c-43cb-a4fc-141f98ac4a1d
Unless there is some user interaction the cart wont try to load. The same problem occurs also in checkout page. If you try to refresh without any event triggering
I dont think it makes much sense with this events toFireOn. Maybe it should be configurable. But I would not enable this in my personal project. I think this code should be removed. Because in mobile if someone tries to open a page they might be waiting forever until they try to scroll up and down for the request to trigger.
WDYT? Should I make a PR removing this?
@scottyzen @Jackiiiii this issue should be resolved now.
Hello, i wanted to ask if u maybe know why my account page has an loading loop. i have install 3 wordpress, reinstall it on 2 server and still the same everything else works.
kind regards Jack