-
Notifications
You must be signed in to change notification settings - Fork 12
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
onCreate 时发送的Intent 事件在 App 从后台返回的时候被异常消费了 #6
Comments
操作视频: 20240118-150659.mp4 |
晚上在 MviDispatcher 内打印了一些日志:
打印出的日志如下:
|
感谢你的反馈。根据你提供的信息,个人认为问题是由于 input 发生在 requester 被注册前所致。 fragment 的 view 无法在 onCreate 阶段直接获得,导致 目前暂未找到更好的办法,只能是开发者自己注意,避免在 onOutput 注册前,发生 input。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码修改截图:
就是新增了一个测试事件在 onCreate 生命周期的时候调用
日志截图:
APP 在前台的时候没响应 onCreate 发的事件是符合预期的,因为事件的收集是在 onStart 阶段,但是此时退到后台再返回,情况就不对了,这时候把 onCreate 发的事件响应了。
The text was updated successfully, but these errors were encountered: