mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: riverpod v2 to v3
# Conflicts: # mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart
This commit is contained in:
+15
-2
@@ -55,9 +55,22 @@ void main() async {
|
||||
await workerManagerPatch.init(dynamicSpawning: true, isolatesCount: max(Platform.numberOfProcessors - 1, 5));
|
||||
await migrateDatabaseIfNeeded();
|
||||
|
||||
runApp(ProviderScope(overrides: [driftProvider.overrideWith(driftOverride(drift))], child: const MainWidget()));
|
||||
runApp(
|
||||
ProviderScope(
|
||||
overrides: [driftProvider.overrideWith(driftOverride(drift))],
|
||||
// Never retry any provider
|
||||
retry: (retryCount, error) => null,
|
||||
child: const MainWidget(),
|
||||
),
|
||||
);
|
||||
} catch (error, stack) {
|
||||
runApp(BootstrapErrorWidget(error: error.toString(), stack: stack.toString()));
|
||||
runApp(
|
||||
ProviderScope(
|
||||
// Never retry any provider
|
||||
retry: (retryCount, error) => null,
|
||||
child: BootstrapErrorWidget(error: error.toString(), stack: stack.toString()),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user