Skip to content
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

feat: add searchForFacetValues for composition #6489

Merged
merged 5 commits into from
Dec 21, 2024

Conversation

e-krebs
Copy link

@e-krebs e-krebs commented Dec 20, 2024

Summary

adding support for SearchForFacetValues when using Composition API
EMERCH-1745

Result

there is a small bug on the API side which result in highlighting not working as expecting in the facet values, but that doesn't affect the implementation as the fix should be transparent API-wise

@e-krebs e-krebs self-assigned this Dec 20, 2024
Comment on lines +592 to +595
if (this.compositionID) {
mainHelper.searchForFacetValues =
mainHelper.searchForCompositionFacetValues.bind(mainHelper);
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with this approach because it allows things to be completely transparent for connectRefinementList, but I'm open to suggestions

Copy link

codesandbox-ci bot commented Dec 20, 2024

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 7d594f3:

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

@e-krebs e-krebs marked this pull request as ready for review December 20, 2024 16:25
@e-krebs e-krebs requested a review from Haroenv December 20, 2024 16:25
Co-authored-by: Haroen Viaene <hello@haroen.me>
@e-krebs e-krebs requested a review from Haroenv December 20, 2024 16:35
@Haroenv
Copy link
Contributor

Haroenv commented Dec 21, 2024

Once we're aiming for GA with composition, I'd like to see a plan how the search and sffv methods could be the same between search and composition.

@Haroenv Haroenv merged commit 3ce2711 into feat/composition Dec 21, 2024
10 checks passed
@Haroenv Haroenv deleted the feat/composition-searchForFacetValues branch December 21, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants