turn off autodispose for real globals

This commit is contained in:
Christien Rioux 2023-09-30 21:28:45 -04:00
parent 4ca71db7c5
commit 268b86d131
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -13,6 +13,6 @@ enum GlobalConnectionState {
final globalConnectionState =
StateController<GlobalConnectionState>(GlobalConnectionState.detached);
final globalConnectionStateProvider = AutoDisposeStateNotifierProvider<
final globalConnectionStateProvider = StateNotifierProvider<
StateController<GlobalConnectionState>,
GlobalConnectionState>((ref) => globalConnectionState);