Comments (1)
不好意思,刚看到,回复有点晚。针对提出的问题,我大概的讲下我的理解哈
hasLogin
主要用来修改不同状态下,页面的不同显示,主要差别是在侧滑栏这边,你说的data class
处理也是可以的,主要取决于你更新页面的数据量,多个的话也可以用class
来处理会更合适- 目前准备增加错误处理的,当时写的不是很完善
- 你说的内存泄漏是不会有的,
Respository
并没有持有ViewModel
的引用,同时ViewModel
内部已经做了声明周期的监听,当View
销毁的时候会做出相应的处理
from coroutineswanandroid.
Related Issues (13)
- 关于异常 HOT 1
- 来个java篇好不好 HOT 2
- 使用AsyncPagedListDiffer解决刷新空白的问题 HOT 7
- Didn't find class on path DexPathList HOT 2
- Coroutine和组件结合的生命周期不用管理的么? HOT 1
- 一加5T上安装了以后无法启动app HOT 1
- 体验APK在Android R下面崩溃 HOT 1
- 请问关于Paging3的问题 HOT 4
- UI bug
- 请求优化
- 运行报这个错误 HOT 4
- 缺少class RequestStatusCode in version 2.0.2 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coroutineswanandroid.