-
Notifications
You must be signed in to change notification settings - Fork 157
Refinement list / tree menu with vue-router #357
Comments
Can you make a small replication in a repo, it will be a lot more straightforward to see which situation you are hitting |
Sure, here you go: https://github.com/salparadise/vue-instantsearch-spa If you navigate to search page and then navigate back to home page, you will see that on "Home" click two requests are being made. |
perfect, will take a look at that soon |
Just tried it, and I consider it is a bug. What happens is that when search components gets destroyed, we remove facets from the search store. This triggers a search operation because the query parameters changed. Here we probably need to either:
Should be a quick fix. |
I tried #359 with your example @salparadise and it works ;) |
Do you want to request a feature or report a bug?
Report a bug.
Bug: What is the current behavior?
I'm using vue-instantsearch along with vue-router to make a simple SPA. There are some refinement list and tree menu components on the search page. After clicking on any router link, even outside of index component, it is behaving as if I'm clicked on refinement list / tree menu item. The numer of requests depends on the number of components. Let's say I have 3 tree menus and 2 refinement lists, then there will be 5 (identical) requests.
Bug: What is the expected behavior?
There should be no requests.
Bug: What browsers are impacted? Which versions?
All.
What is the version you are using? Always use the latest one before opening a bug issue.
1.3.1
The text was updated successfully, but these errors were encountered: