Skip to content

AsyncStorage.getItem(key)第一次使用时,等待了 2 分钟才返回结果,之后都是毫秒级返回 #165

Closed
@yazhengwang

Description

@yazhengwang

Current behavior

在 Android 中,第一次使用AsyncStorage.getItem(key)读取值,等待了 2 分钟才返回结果,之后都是毫秒级返回

###为什么第一次需要等待这么才时间

Expected behavior

以前的版本是没有这个问题的都是很快就返回了

Repro steps

console.log('---read--start', Date.now())
const value = await AsyncStorage.getItem(key);
console.log('---read--end', Date.now())

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions