test: expand client-side coverage and fix lifecycle issues

This commit is contained in:
Artem Kokos
2026-05-01 10:12:33 +07:00
parent 2fa89f6be0
commit 8f0753c1e2
10 changed files with 1116 additions and 43 deletions

View File

@@ -22,15 +22,18 @@ class RemoteScreen extends ConsumerStatefulWidget {
}
class _RemoteScreenState extends ConsumerState<RemoteScreen> {
late final GroupsNotifier _groupsNotifier;
@override
void initState() {
super.initState();
Future.microtask(() => ref.read(groupsProvider.notifier).startPolling());
_groupsNotifier = ref.read(groupsProvider.notifier);
Future.microtask(_groupsNotifier.startPolling);
}
@override
void dispose() {
ref.read(groupsProvider.notifier).stopPolling();
_groupsNotifier.stopPolling(resetStatus: false);
super.dispose();
}