Skip to content
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

你好 问下 我mvvm模式 viewmodel里面不适合传入context 请问操作 #20

Open
CPC-Coder opened this issue Feb 17, 2022 · 3 comments

Comments

@CPC-Coder
Copy link

No description provided.

@CPC-Coder
Copy link
Author

在android jetpack应用指南的书里 说道viewmodel里面不适合传入context 会造成内存泄漏

@CPC-Coder
Copy link
Author

WebSocket 功能 要不要分出来 因为大部分项目用不到socket

@kongzue
Copy link
Owner

kongzue commented May 10, 2022

传入ApplicationContext也可以,但是返回会在异步线程

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

No branches or pull requests

2 participants