-
Notifications
You must be signed in to change notification settings - Fork 530
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
Rendering Hits without a Search box doesn't use search state #2054
Comments
Any word on this? Kind of a big deal that I have to render an empty connector in production. the results seem to load in all at once, then quickly after the query from the state is applied if i do this. feels very weird :P |
Hi @zackify, What you need to do here is using a virtual searchbox. Here's an example combined with Check out this guide also: https://community.algolia.com/instantsearch.js/react/guide/Virtual_widgets.html |
This doesn't solve two problems:
Is there no way to just set 15 hits per page and the search query and only display hits? Thanks :) Edit: I see that the example wants you to render an empty connector, this feels so weird. Why can it not just take the state from searchState on teh root instantsearch? Also still need a solution for #2 either way. Should I make a new issue? Thanks! |
@zackify We will need to sync on that issue with the rest of the team, we usually do that at the beginning of the week. Thanks for your patience. |
Hello @zackify Virtual Widgets are the way to go when needing a refinement without any rendering. Also, if you want to limit the results at 15, then you can use our Configure widget like: Does this answer your use case? |
Ah okay, that works fine. I guess I just want to mention how weird it is to have a searchState prop that doesn't actually do anything without components being rendered. Closing! |
Bug: What is the current behavior?
Render hits inside of
<InstantSearch />
without a searchbox, nothing gets refined:https://jsfiddle.net/ar80rgpc/8/
With the same thing, but also a searchbox, it works.
https://jsfiddle.net/ar80rgpc/9/
Bug: What is the expected behavior?
To be able to refine results without showing a searchbox.
Bug: What browsers are impacted? Which versions?
All
What project are you opening an issue for?
What is the version you are using? Always use the latest one before opening a bug issue.
3.2.1
The text was updated successfully, but these errors were encountered: