Malawi-DCCMS / weather-app

An app to show the weather.
0 stars 0 forks source link

Consider adjusting saveLocation function #199

Open havardf opened 6 days ago

havardf commented 6 days ago

saveLocation stores the currently set position in Redux in AsyncStorage (in addition to redux storage). So it can be restored even when the app gets closed?

The code is called in useEffect in main screen like so:

dispatch(saveLocation({ name: location, position: { lat, long: lon } }));

A couple of questions: