algoliasearch-helper-flutter
algoliasearch-helper-flutter copied to clipboard
FilterState.filters stream not updated on FilterState.clear
Describe the bug 🐛
I have a FilterState and listen to the filterState.filters stream for updates. When adding filters i receive updates, but not when calling filterState.clear.
To Reproduce 🔍
- create a
FilterStateinstance - listen to the
FilterState.filtersstream using aStreamBuilder - add filters and confirm we receive stream updates
- add a button which calls
filterState.clearand confirm theStreamBuilderdoes not receive an update
Expected behavior 💭
I'd expect StreamBuilder to receive an update when calling filterState.clear
Screenshots 🖥
Environment:
- OS: iOS
- Library Version ^0.2.3
Additional context
flutter --version
Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 12cb4eb7a0 (8 days ago) • 2023-03-01 10:29:26 -0800
Engine • revision ada363ee93
Tools • Dart 2.19.3 • DevTools 2.20.1