Instantsearch.js: Hide results on empty search

Created on 12 Jun 2017  路  3Comments  路  Source: algolia/instantsearch.js

Much like on jadopado, users want to be able to display some curated content when the query is empty, or only before the first keystroke. We should make a definitive to explain which patterns to use.

Easy Guide Core hacktoberfest

Most helpful comment

All 3 comments

In React InstantSearch we suggest a custom connector, but were doubting to make something built-in. Maybe also useful here... https://community.algolia.com/react-instantsearch/guide/Conditional_display.html

Well in instantsearch.js we can leverage the searchFunction. It's just not straightforward. I updated the code of one of our user on codepen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jvreeken picture jvreeken  路  3Comments

Maaark picture Maaark  路  4Comments

devwax picture devwax  路  3Comments

Spone picture Spone  路  3Comments

proudlygeek picture proudlygeek  路  4Comments