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:
Is this a bug? Why use dispatch to store data in AsyncStorage?
If this location data is not currently restored as initial state of redux, do we need this at the moment?
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:
A couple of questions: