-
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
代码修改截图:
![image](https://private-user-images.githubusercontent.com/18431596/297652540-17760338-d47b-486a-affa-cfa339d7c65e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjIxMDgsIm5iZiI6MTcyNDEyMTgwOCwicGF0aCI6Ii8xODQzMTU5Ni8yOTc2NTI1NDAtMTc3NjAzMzgtZDQ3Yi00ODZhLWFmZmEtY2ZhMzM5ZDdjNjVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDAyNDMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjMTIwMjU0YTFlMjUzZDRiZDM5NWUwZjUwYzg4OTg4MDY5NTYxODU3NjRmZTFjMWU4NDdhM2I1YzI0YThiZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ij7gxRwb_i0bKplhWDetveoGlKTsse3-XDoIz4Ulj_c)
![img_v3_0277_8a9b23b0-3aaa-4dd8-9195-7ea66197eddg](https://private-user-images.githubusercontent.com/18431596/297652448-3ab46046-20d4-4b78-88a8-02938bc97f3a.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjIxMDgsIm5iZiI6MTcyNDEyMTgwOCwicGF0aCI6Ii8xODQzMTU5Ni8yOTc2NTI0NDgtM2FiNDYwNDYtMjBkNC00Yjc4LTg4YTgtMDI5MzhiYzk3ZjNhLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDAyNDMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNhM2Q1YWZiNjNkNDg5NTEzMGIxY2ZiYjg3ZjVjMjFjNWRlYzRmNTMzMmZiYzNkNjJmY2JlYzQ0MzU5YzgwOWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LDVZMUp9f2AYusPlFV3VTzDZXCMkipRa86VW-cHcpUE)
就是新增了一个测试事件在 onCreate 生命周期的时候调用
日志截图:
APP 在前台的时候没响应 onCreate 发的事件是符合预期的,因为事件的收集是在 onStart 阶段,但是此时退到后台再返回,情况就不对了,这时候把 onCreate 发的事件响应了。
The text was updated successfully, but these errors were encountered: