react-native-storage
react-native-storage copied to clipboard
Added concurrency limiter
Fixes this issue: https://github.com/sunnylqm/react-native-storage/issues/245
https://github.com/facebook/react-native/issues/27483
Maybe use multiGet is a better way?
Are you saying call storage.getIdsForKey and then batch multiGet in smaller amounts?
Yes in that way there would be only one promise.
Unfortunately window.localStorage does not have that same multiGet function which would break the cross platform compatibility of this library. Any other ideas?
Make it conditional (use multiGet only if it's available)