mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-08 17:25:01 -04:00
turn off autodispose for real globals
This commit is contained in:
parent
4ca71db7c5
commit
268b86d131
2 changed files with 2 additions and 2 deletions
|
@ -115,5 +115,5 @@ Future<IList<Chat>?> fetchChatList(FetchChatListRef ref) async {
|
|||
// The selected chat
|
||||
final activeChatState = StateController<TypedKey?>(null);
|
||||
final activeChatStateProvider =
|
||||
AutoDisposeStateNotifierProvider<StateController<TypedKey?>, TypedKey?>(
|
||||
StateNotifierProvider<StateController<TypedKey?>, TypedKey?>(
|
||||
(ref) => activeChatState);
|
||||
|
|
|
@ -13,6 +13,6 @@ enum GlobalConnectionState {
|
|||
|
||||
final globalConnectionState =
|
||||
StateController<GlobalConnectionState>(GlobalConnectionState.detached);
|
||||
final globalConnectionStateProvider = AutoDisposeStateNotifierProvider<
|
||||
final globalConnectionStateProvider = StateNotifierProvider<
|
||||
StateController<GlobalConnectionState>,
|
||||
GlobalConnectionState>((ref) => globalConnectionState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue