mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04: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
|
// The selected chat
|
||||||
final activeChatState = StateController<TypedKey?>(null);
|
final activeChatState = StateController<TypedKey?>(null);
|
||||||
final activeChatStateProvider =
|
final activeChatStateProvider =
|
||||||
AutoDisposeStateNotifierProvider<StateController<TypedKey?>, TypedKey?>(
|
StateNotifierProvider<StateController<TypedKey?>, TypedKey?>(
|
||||||
(ref) => activeChatState);
|
(ref) => activeChatState);
|
||||||
|
@ -13,6 +13,6 @@ enum GlobalConnectionState {
|
|||||||
|
|
||||||
final globalConnectionState =
|
final globalConnectionState =
|
||||||
StateController<GlobalConnectionState>(GlobalConnectionState.detached);
|
StateController<GlobalConnectionState>(GlobalConnectionState.detached);
|
||||||
final globalConnectionStateProvider = AutoDisposeStateNotifierProvider<
|
final globalConnectionStateProvider = StateNotifierProvider<
|
||||||
StateController<GlobalConnectionState>,
|
StateController<GlobalConnectionState>,
|
||||||
GlobalConnectionState>((ref) => globalConnectionState);
|
GlobalConnectionState>((ref) => globalConnectionState);
|
||||||
|
Loading…
Reference in New Issue
Block a user