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

refactor(ui-components): compute classNames only once #6198

Closed Haroenv closed 1 month ago

Haroenv commented 1 month ago

Summary

FX-2860

Result

Compute the classNames/cssClasses only once in the ui component, and ensure the components have access to all classes

codesandbox-ci[bot] commented 1 month 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 5ffb7f2b7ce288dcb72c2aa812aac2c994a4e1df:

Sandbox Source
react-instantsearch-app Configuration
example-react-instantsearch-default-theme Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-vue-instantsearch-default-theme Configuration