fix 7TV emote mutations on computed map, fix search store disposer leak, fix typo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tommy Chow 2026-02-08 20:34:49 -08:00
parent f9302b0d82
commit 9119a69b17
5 changed files with 52 additions and 8 deletions

View file

@ -23,6 +23,8 @@ abstract class SearchStoreBase with Store {
Timer? _debounceTimer;
ReactionDisposer? _disposeReaction;
@readonly
var _searchText = '';
@ -53,7 +55,7 @@ abstract class SearchStoreBase with Store {
ObservableList<String>();
// Create a reaction that will limit the history to 8 entries and update it to local storage automatically.
autorun((_) {
_disposeReaction = autorun((_) {
if (_searchHistory.length > 8) _searchHistory.removeLast();
prefs.setStringList('search_history', _searchHistory);
});
@ -136,6 +138,7 @@ abstract class SearchStoreBase with Store {
}
void dispose() {
_disposeReaction?.call();
_debounceTimer?.cancel();
textEditingController.dispose();
textFieldFocusNode.dispose();