Describe the bug 🐛
When you try to toggle a facet almost at the same time that the previous one, the filter state who listen filters, detects only one instead of adding the second one.
To Reproduce 🔍
Steps to reproduce the behavior:
Create a list of facets to toggle
Toggle facets which are only different than the previous one
Describe the bug 🐛
When you try to toggle a facet almost at the same time that the previous one, the filter state who listen filters, detects only one instead of adding the second one.
To Reproduce 🔍
Steps to reproduce the behavior:
Expected behavior 💭
Both Facets should be added
Here is an example of my code:
And here is what the listener of _filterState.filters prints
Instead of:
flutter: Filters{facetGroups: {FilterGroupID{ name: containedBranches, operator: FilterOperator.or}: {FilterFacet{attribute: containedBranches, isNegated: false, value: FILTER1, score: null}, FilterFacet{attribute: containedBranches, isNegated: false, value: FILTER2, score: null}}}, tagGroups: {}, numericGroups: {}, hierarchicalGroups: {}}