Skip to content

[react-instantsearch-hooks] Hiding Facet widgets remove selected filters #5353

Answered by Haroenv
avremel asked this question in Q&A
Discussion options

You must be logged in to vote

A widget can not be removed from the tree without also removing its refinement. A workaround is thus to hide with css or skipping the markup from rendering only (still rendering the hook).

How to keep the return value fresh with the newest async results from the Algolia hooks.

The value returned from InstantSearch hooks is always updated on the last search results. If that's not the case, there's a bug we'd love to see a reproduction for

How to handle a dynamic list of facets (determined by the particular page/url). Do I create a hook for each facet in a for-loop?

You can do that, but you can also use DynamicWidgets and define those facets with query rules based on the category for ex…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@avremel
Comment options

@Haroenv
Comment options

@avremel
Comment options

@avremel
Comment options

@avremel
Comment options

Answer selected by avremel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch ≥ 7 Issues in any of the react-instantsearch@7 packages (formerly named react-instantsearch-hooks)
2 participants