algolia / instantsearch-ios

⚡️ A library of widgets and helpers to build instant-search applications on iOS.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/ios/
Apache License 2.0
591 stars 55 forks source link

fix(dynamic facets): recalculate selections on facets order change #289

Closed VladislavFitz closed 1 year ago

VladislavFitz commented 1 year ago

Summary

This PR adds recalculation of the selections in the DynamicFacetListInteractor on update of facets values. This is useful when the selected facets are predefined in the FilterState, but no selections update happens until the user's selection.

Result

The selection state of the DynamicFacetListInteractor is correct even if the filters are preselected in the FilterState.