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.73k stars 525 forks source link

fix: import `index` from its specific file #6310

Closed Haroenv closed 3 months ago

Haroenv commented 3 months ago

Summary

Import index from its entry point, not from the widgets file

This avoids side effects or other widgets being imported when only the InstantSearch component is imported.

Result

fixes #6309

This was introduced by accident in https://github.com/algolia/instantsearch/commit/89dd7ae4d45dea4dafbe451e55b01f2e45caf07e#diff-ab6f88a95338456e6f91ca8aa8699155153f09b67f8b2aab1bca4708e47eb9bfR10

codesandbox-ci[bot] commented 3 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 e98d0e39b99c989d271341e8a0c7b87b0506a5e3:

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