-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useRequest custom cache support async getCache #182
Labels
Milestone
Comments
能否给一个示例,否则不知道你的使用场景和需求是什么 |
因为想使用 localforage 进行数据缓存,而 localforage 的 getItem 是一个异步行为 |
或许你可以自己使用 Promise 包裹一层,这边暂时不考虑异步行为。 |
你的写法有点不对,明天我尝试还原你的使用场景给你一个答复。感谢你的支持~ |
@BreathlessWay 后续会考虑支持 |
目前 getCache 确实不支持异步的。 |
@BreathlessWay 我们将在 2.x 探索如何进行优雅的异步获取缓存 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
能否支持异步调用的 getCache
Suggested solution
useCachePlugin.js 中的 方法 getCache 使用 async await 调用
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: