Environment
- Xcode version: 26.1.1
- iOS version: 26.1
- Devices affected:
- Maps SDK Version: 11.19.0
Observed behavior and steps to reproduce
The map sometimes doesn't invoke the onStyleLoaded or onMapLoaded lifecycle callbacks.
Expected behavior
The map should always invoke the callbacks
Notes / preliminary analysis
This issue appears to occur when the view re-renders due to a state change moments after the map is initialised.
Attached is a minimal sample project that exhibits the issue.
Additional links and references
MapboxOnStyleLoadedNotCalled.zip
Environment
Observed behavior and steps to reproduce
The map sometimes doesn't invoke the
onStyleLoadedoronMapLoadedlifecycle callbacks.Expected behavior
The map should always invoke the callbacks
Notes / preliminary analysis
This issue appears to occur when the view re-renders due to a state change moments after the map is initialised.
Attached is a minimal sample project that exhibits the issue.
Additional links and references
MapboxOnStyleLoadedNotCalled.zip