hooks icon indicating copy to clipboard operation
hooks copied to clipboard

useRequest自定义缓存, 能否支持异步getCache

Open Xuan-Yu-San opened this issue 2 years ago • 3 comments

像是钉钉缓存相关的JSAPI,或者ahooks官网说的IndexDB,都不是在当前宏事件里可以返回结果的。所以希望getCache可以支持异步函数。 截屏2022-06-21 上午11 37 11

Xuan-Yu-San avatar Jun 21 '22 03:06 Xuan-Yu-San

+1

baranwang avatar Feb 20 '23 11:02 baranwang

这个希望能支持一下,使用 localForage 的时候返回的是 Promise,目前只能设置在 localstorage 里面

LaamGinghong avatar Nov 02 '23 07:11 LaamGinghong

可以考虑支持~

liuyib avatar Nov 06 '23 02:11 liuyib