Skip to content

Commit ebf41f2

Browse files
committed
autocomplete [nfc]: Explain why no [AutocompleteViewManager.dispose]
1 parent d882f50 commit ebf41f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/model/autocomplete.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ class AutocompleteViewManager {
154154
view.reassemble();
155155
}
156156
}
157+
158+
// No `dispose` method, because there's nothing for it to do.
159+
// The [MentionAutocompleteView]s are owned by (i.e., they get [dispose]d by)
160+
// the UI code that manages the autocomplete interaction, including in the
161+
// case where the [PerAccountStore] is replaced. Discussion:
162+
// https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/.60MentionAutocompleteView.2Edispose.60/near/1791292
163+
// void dispose() { … }
157164
}
158165

159166
/// A view-model for a mention-autocomplete interaction.

0 commit comments

Comments
 (0)