Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

cacheAndRemote使用问题 #38

Open
ZQ7 opened this issue Sep 18, 2019 · 3 comments
Open

cacheAndRemote使用问题 #38

ZQ7 opened this issue Sep 18, 2019 · 3 comments

Comments

@ZQ7
Copy link

ZQ7 commented Sep 18, 2019

CacheStrategy.cacheAndRemote()这个缓存策略在 存在缓存网络错误 时没有走onNext,只回调了一次onError,但是在Debug调试CacheAndRemoteStrategy中的代码时,正常返回,回调一次onError一次onNext,求问一下这是什么问题

@ZQ7
Copy link
Author

ZQ7 commented Sep 24, 2019

配置应该是没有问题的,firstRemote(优先网络,缓存用异步的方式保存)这种策略可以

@BaiShou
Copy link

BaiShou commented Feb 6, 2020

你解决了吗

@BaiShou
Copy link

BaiShou commented Feb 6, 2020

不知道你是否是在mergeDelayError中使用的
mergeDelayError有一个坑的。
具体看 https://blog.csdn.net/shuxiangxingkong/article/details/52516018 里面说的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants