background fetch running
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_mozilla_components/flutter_mozilla_components.dart';
|
||||
import 'package:lensai/features/geckoview/domain/providers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
@@ -25,8 +23,8 @@ class SelectedTab extends _$SelectedTab {
|
||||
state = tabId;
|
||||
});
|
||||
|
||||
ref.onDispose(() {
|
||||
unawaited(selectedTabSub.cancel());
|
||||
ref.onDispose(() async {
|
||||
await selectedTabSub.cancel();
|
||||
});
|
||||
|
||||
return null;
|
||||
|
||||
@@ -6,7 +6,7 @@ part of 'selected_tab.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$selectedTabHash() => r'250f54fe9a56d14876e0979e5370eb76879da11c';
|
||||
String _$selectedTabHash() => r'12b670dd76c3416e8d62bafd63bf69a83a603e3a';
|
||||
|
||||
/// See also [SelectedTab].
|
||||
@ProviderFor(SelectedTab)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:fast_equatable/fast_equatable.dart';
|
||||
import 'package:flutter_mozilla_components/flutter_mozilla_components.dart';
|
||||
import 'package:lensai/features/geckoview/domain/providers.dart';
|
||||
@@ -30,8 +28,8 @@ class TabList extends _$TabList {
|
||||
}
|
||||
});
|
||||
|
||||
ref.onDispose(() {
|
||||
unawaited(tabListSub.cancel());
|
||||
ref.onDispose(() async {
|
||||
await tabListSub.cancel();
|
||||
});
|
||||
|
||||
return EquatableValue([]);
|
||||
|
||||
@@ -6,7 +6,7 @@ part of 'tab_list.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$tabListHash() => r'2b98ccdf62c15670e0a12e38064e8186e6555cf8';
|
||||
String _$tabListHash() => r'9507bcc75dc69a55aba14334cdef0128a5fcf252';
|
||||
|
||||
/// See also [TabList].
|
||||
@ProviderFor(TabList)
|
||||
|
||||
@@ -165,9 +165,9 @@ class TabStates extends _$TabStates {
|
||||
}
|
||||
});
|
||||
|
||||
ref.onDispose(() {
|
||||
ref.onDispose(() async {
|
||||
for (final sub in subscriptions) {
|
||||
unawaited(sub.cancel());
|
||||
await sub.cancel();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ final selectedTabStateProvider = AutoDisposeProvider<TabState?>.internal(
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedTabStateRef = AutoDisposeProviderRef<TabState?>;
|
||||
String _$tabStatesHash() => r'b136dbf6d68b67f0fe0db302a4147b67789db853';
|
||||
String _$tabStatesHash() => r'3a906aec8c4e650de8d5d2461ff45a99b8a0a3b9';
|
||||
|
||||
/// See also [TabStates].
|
||||
@ProviderFor(TabStates)
|
||||
|
||||
@@ -86,9 +86,9 @@ class WebExtensionsState extends _$WebExtensionsState {
|
||||
],
|
||||
};
|
||||
|
||||
ref.onDispose(() {
|
||||
ref.onDispose(() async {
|
||||
for (final sub in subscriptions) {
|
||||
unawaited(sub.cancel());
|
||||
await sub.cancel();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ part of 'web_extensions_state.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$webExtensionsStateHash() =>
|
||||
r'eab924e9c17e805a3c29065289be5d1c8ffe3bc9';
|
||||
r'6fb44ab543250f2b2554e410ee749fdd035cd4e7';
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
|
||||
@@ -167,10 +167,10 @@ class TabRepository extends _$TabRepository {
|
||||
});
|
||||
});
|
||||
|
||||
ref.onDispose(() {
|
||||
ref.onDispose(() async {
|
||||
tabStateDebouncer.dispose();
|
||||
unawaited(tabAddedSub.cancel());
|
||||
unawaited(tabContentSub.cancel());
|
||||
await tabAddedSub.cancel();
|
||||
await tabContentSub.cancel();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ part of 'tab.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$tabRepositoryHash() => r'69e283b820d86388f4d80e71e08761e2b6890507';
|
||||
String _$tabRepositoryHash() => r'35c078a841d815aa2452c07b52c4cf0cbcec7e68';
|
||||
|
||||
/// See also [TabRepository].
|
||||
@ProviderFor(TabRepository)
|
||||
|
||||
Reference in New Issue
Block a user