algolia / instantsearch

⚡️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/
MIT License
3.59k stars 503 forks source link

fix: provide scopedResults when main index has no index name set #6161

Closed dhayab closed 2 months ago

dhayab commented 2 months ago

Summary

This PR fixes an issue which returns an empty scopedResults through useInstantSearch() when the main index has no index name set.

Result

Scoped results are now properly returned even when the main index has no name set.

Fixes #6132

codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 31e2c1876e84d15b88e6bd83d75d87f4f57cb362:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration