-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Additional requests when there're no results with dynamic widgets #173
Comments
It looks like the Typesense example uses I suspect the issue is most likely related to For eg, with the same dataset that your Typesense example is using, this demo app uses Although, I'm not using |
@jasonbosco I can reproduce the issue with the app that you shared. Repository with update app which uses dynamic widgets and have the same issue. Let me know if you need any more information from me. |
Also, the Algolia example above also uses dynamic widgets from |
@jasonbosco Would you mind taking a look at this when you have a moment? I would greatly appreciate your input. |
… responses, instead of just the first. #173
@dziugas-liaudinskas Sorry about the delay, and thank you for the detailed reproduction steps. That was super helpful. I was able to identify where the difference is coming from. I've pushed out a fix in |
@jasonbosco As I can see issue still persists. I pushed the new branch |
@dziugas-liaudinskas I'm not too familiar with react-instantsearch-hooks, but it seems like the fix worked in this other instantsearch.js repo you shared, once you upgrade to |
@jasonbosco The issue still persists on that repo too with an updated version. I pushed a new branch with an updated version (branch name: update-v2.7.1-0) if you are keen to try it. Maybe we do something differently? Added screen recording to check if we follow the same steps. Screen.Recording.2023-07-17.at.10.04.40.mov |
@dziugas-liaudinskas Thank you for the screen recording. Looks like I had some debug code in my test project which was preventing a bug from surfacing. I've fixed now fixed this in |
@jasonbosco Now it works. That's amazing, thank you! |
Description
When using DynamicWidgets and the price range filter simultaneously, an issue arises when encountering scenarios with no search results. In these cases, multiple redundant search requests are triggered, and the received results do not reflect the applied filters. It is expected that a "no results" screen would be displayed, similar to the behavior observed when using Algolia.
Steps to reproduce
Example with Typesense adapter
npm install && npm run build && npm start
and open localhostExample with Algolia
npm i && npm run dev
, open localhost and go to/category/speakers
Expected Behavior
When there are no available results there should not be additional requests with filters removed. The user should see the "no results" screen
Actual Behavior
When then are no available results screen flickers and selected filters get removed. In the network tab, multiple requests can be seen
Metadata
"typesense-instantsearch-adapter": "^2.7.0"
The text was updated successfully, but these errors were encountered: