mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-13 16:35:32 -04:00
statenotifier
This commit is contained in:
parent
8f0b4aaba0
commit
7a49497620
15 changed files with 28 additions and 56 deletions
|
@ -29,7 +29,7 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
|
|||
hasAnyAccount = await ref.watch(
|
||||
localAccountsProvider.selectAsync((data) => data.isNotEmpty),
|
||||
);
|
||||
hasActiveChat = ref.watch(activeChatStateProvider).value != null;
|
||||
hasActiveChat = ref.watch(activeChatStateProvider) != null;
|
||||
|
||||
// When this notifier's state changes, inform GoRouter
|
||||
ref.listenSelf((_, __) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue