From fb510e985319a622447573c731dd58c38d6b573f Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Wed, 16 Jul 2025 22:16:16 +0800 Subject: [PATCH] temporary change for stress test --- mobile/lib/presentation/widgets/map/map.widget.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile/lib/presentation/widgets/map/map.widget.dart b/mobile/lib/presentation/widgets/map/map.widget.dart index c72262604a..128fbe2738 100644 --- a/mobile/lib/presentation/widgets/map/map.widget.dart +++ b/mobile/lib/presentation/widgets/map/map.widget.dart @@ -134,8 +134,10 @@ class _DriftMapState extends ConsumerState { AsyncValue> allMarkers = ref.watch(mapMarkerProvider(null)); - ref.listen(mapStateProvider, (previous, next) async { - markers = ref.watch(mapMarkerProvider(bounds)); + ref.listen(mapStateProvider, (_, __) async { + if (!loadAllMarkers) { + markers = ref.watch(mapMarkerProvider(bounds)); + } }); markers.whenData((markers) => reloadMarkers(markers));