Skip to content

Conversation

@JulianBissekkou
Copy link
Collaborator

Problem

stopLocationDataSource() was called twice—in MapContentView.onDisappear and ArcgisMapView.deinit—causing a race during SwiftUI teardown.

Solution

Remove the call from ArcgisMapView.deinit and keep it only in MapContentView.onDisappear.
Official ArcGIS SwiftUI samples stop the location data source in .onDisappear as well.

@TarekTolba1 TarekTolba1 merged commit 29eb427 into fluttercommunity:main Oct 9, 2025
@TarekTolba1 TarekTolba1 deleted the remove-duplicate-location-data-source-cleanup branch October 9, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants