Debugging issue with *and* operator on useRefinementList hook #6682
Unanswered
matt-quests-for-tacos
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Why are you using the currentRefinement from useCurrentRefinements instead of just the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Good point, I can refactor this to use isRefined on items. However, that doesn't provide any context as to why the and operator on the useRefinementsList hook is just not doing anything. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This just doesn't appear to be working for me, and want to make sure I am not missing something.
Here is some sample code:
The currentRefinement -> refinementsList that I get back from the useCurrentRefinements hook has the disjunctive type, and the query that gets built just ignores the AND syntax / request altogether. The or operator works great out of the box, but when I toggle the operator and re render this filter to use the and operator I just cannot get it to work.
Should this current refinement list have the conjunctive type, and is that why the and syntax is just being ignored?
Beta Was this translation helpful? Give feedback.
All reactions