2
votes

I am building a React Native app which requires calling AsyncStorage multiple times in different components.

For example a particular screen can only be opened in web if the user is logged in, which requires checking the local storage.

Callings AsyncStorage every time doesn’t seem like a good idea and might impact performance as the application grows.

Is implementing redux the best option or is there any other way?

1

1 Answers

1
votes

Yes, if you rely on saving too many records. You can however optimize it by using redux persist or using in-memory cache.

A good read that helped understand optimization and performance of Async: https://medium.com/@Sendbird/extreme-optimization-of-asyncstorage-in-react-native-b2a1e0107b34