-
Hi, I am facing an issue that is causing an extra network request for queries to occur when navigating out of the instant search page. I have created a sandbox link to check. Open the network tab and observe the queries request and Click on the link "Visit Product Page" on the top left of the website you will notice an additional queries request being made. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Not sure if I should open an issue for this |
Beta Was this translation helpful? Give feedback.
-
This behaviour is happening because there are two insights middleware, and the cleanup of those triggers another search before the other widgets have been removed. While this is indeed a bug, I'm not sure when you'd need this specific code in real life. I recommend you either put the |
Beta Was this translation helpful? Give feedback.
This behaviour is happening because there are two insights middleware, and the cleanup of those triggers another search before the other widgets have been removed.
While this is indeed a bug, I'm not sure when you'd need this specific code in real life. I recommend you either put the
insights
option to false or (recommended) not use the extra manual InsightsMiddleware. If either of those things are done, then no extra queries get sent anymore in my testing.