mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-14 00:45:24 -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((_, __) {
|
||||
|
|
|
@ -6,7 +6,7 @@ part of 'router_notifier.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$routerNotifierHash() => r'8e636edc119d07296a95a5de8a6edadb119154cf';
|
||||
String _$routerNotifierHash() => r'f462d13cf63fa23a7a8e6a4edfa63984f32adaf1';
|
||||
|
||||
/// See also [RouterNotifier].
|
||||
@ProviderFor(RouterNotifier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue