You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are having a hard time getting walker.js running with next.js 15 and the app router. We created a client component and trying to start walker like that:
but it seems like the pathname update gets already triggered even when the page has not been loaded completely, which results in the triggering of the same event multiple times... we are trying to debug that, but currently can't really explain the behaviour.
Let's say I have an e-commerce item page. When I first load the page, the view_item event gets triggered and it is fine. When I make a local page transition to the /cart page, I see another time the view_item event being triggered, but not the view_cart event. When loading the cart page, I get the view_cart event being triggered just one time.
We are using the most recent version of the walker.js.
Are there any configuration settings for Next.js that we can follow?
The text was updated successfully, but these errors were encountered:
the main issue with next.js and the app router is, that the router events got removed: vercel/next.js#41934
that problem is now, that the navigation hook is already triggered, even though the page is not loaded yet, leading to wrong or no triggered events from elbwalker. This is something that needs to be solved.
Describe the bug
We are having a hard time getting walker.js running with next.js 15 and the app router. We created a client component and trying to start walker like that:
but it seems like the pathname update gets already triggered even when the page has not been loaded completely, which results in the triggering of the same event multiple times... we are trying to debug that, but currently can't really explain the behaviour.
Let's say I have an e-commerce item page. When I first load the page, the view_item event gets triggered and it is fine. When I make a local page transition to the /cart page, I see another time the view_item event being triggered, but not the view_cart event. When loading the cart page, I get the view_cart event being triggered just one time.
We are using the most recent version of the walker.js.
Are there any configuration settings for Next.js that we can follow?
The text was updated successfully, but these errors were encountered: