adjust provider lifecycles
This commit is contained in:
@@ -26,7 +26,7 @@ import 'package:weblibre/features/geckoview/domain/providers.dart';
|
||||
|
||||
part 'browser_addon.g.dart';
|
||||
|
||||
@Riverpod()
|
||||
@Riverpod(keepAlive: true)
|
||||
class BrowserAddonService extends _$BrowserAddonService {
|
||||
Future<Uri> getAddonXpiUrl(String guid) async {
|
||||
final url = 'https://addons.mozilla.org/api/v5/addons/addon/$guid/';
|
||||
@@ -65,7 +65,5 @@ class BrowserAddonService extends _$BrowserAddonService {
|
||||
}
|
||||
|
||||
@override
|
||||
void build() {
|
||||
return;
|
||||
}
|
||||
void build() {}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ final class BrowserAddonServiceProvider
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'browserAddonServiceProvider',
|
||||
isAutoDispose: true,
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
@@ -42,7 +42,7 @@ final class BrowserAddonServiceProvider
|
||||
}
|
||||
|
||||
String _$browserAddonServiceHash() =>
|
||||
r'3f2166251f02fe8c103cca93c02eb982b2800577';
|
||||
r'e7a94f86edc900339518ea0cc0e6fdbd9eccd065';
|
||||
|
||||
abstract class _$BrowserAddonService extends $Notifier<void> {
|
||||
void build();
|
||||
|
||||
@@ -28,7 +28,7 @@ import 'package:weblibre/features/search/util/tokenized_filter.dart';
|
||||
|
||||
part 'providers.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
@Riverpod()
|
||||
Stream<List<ContainerDataWithCount>> containersWithCount(Ref ref) {
|
||||
final db = ref.watch(tabDatabaseProvider);
|
||||
return db.definitionsDrift.containersWithCount().watch();
|
||||
|
||||
@@ -28,7 +28,7 @@ final class ContainersWithCountProvider
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'containersWithCountProvider',
|
||||
isAutoDispose: false,
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
@@ -49,7 +49,7 @@ final class ContainersWithCountProvider
|
||||
}
|
||||
|
||||
String _$containersWithCountHash() =>
|
||||
r'757bb0102afedc07ef0f80a420b4c87cbdbed3e1';
|
||||
r'd08294ef0def19b3401552fa9d533c9a780fa3dd';
|
||||
|
||||
@ProviderFor(matchSortedContainersWithCount)
|
||||
const matchSortedContainersWithCountProvider =
|
||||
|
||||
Reference in New Issue
Block a user