I have Two Screen A And Screen B
Screen A execute
sharedPrefs.setUserLatLng(CURRENT_LOCATION_LAT_KEY, CURRENT_LOCATION_LNG_KEY, LatLng(location.latitude, location.longitude))
commonViewModel.onLatLngChange(LatLng(location.latitude, location.longitude))
These Two Lines of code in Launch Effect
When a button click in Screen A It navigate to Screen B
Everything works fine.
When I Back press from Screen B.
Screen A execute above mention two lines of code. I want to prevent that execution when back press from Screen B