Closed wcxaa closed 5 years ago
It caches the promise, not the value returned by your action.
VitorLuizC is right.
VitorLuizC is right.
I know it caches promise, but why it is necessary to cache a rejected promise ?
Save Promise
as cache value is smaller, easier and less invasive than intercept it's resolution/rejection reason. But, maybe is not the right choice, so I'll create another issue with this dicussion.
cache.dispatch 使用async/await,当dispatch报错时不set cache?