sunnylqm / react-native-storage

local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
MIT License
3.02k stars 268 forks source link

为何重启APP后缓存数据才生效 #178

Closed gmars closed 6 years ago

gmars commented 6 years ago

用户登录后页面中是获取不到usertoken的需要重启APP才能获取到,求帮助 storages对象 let storages = new Storage({ size: 1000, storageBackend: AsyncStorage, defaultExpires: null, enableCache: true, }); 设置及读取usertoken /**

/**

sunnylqm commented 6 years ago

请仔细阅读文档,以及学习promise的用法