mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-24 07:09:29 -05:00
turn off autodispose for real globals
This commit is contained in:
parent
4ca71db7c5
commit
268b86d131
@ -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…
Reference in New Issue
Block a user