GithubHelp home page GithubHelp logo

Comments (1)

kukyxs avatar kukyxs commented on August 22, 2024

不好意思,刚看到,回复有点晚。针对提出的问题,我大概的讲下我的理解哈

  1. hasLogin 主要用来修改不同状态下,页面的不同显示,主要差别是在侧滑栏这边,你说的 data class 处理也是可以的,主要取决于你更新页面的数据量,多个的话也可以用 class 来处理会更合适
  2. 目前准备增加错误处理的,当时写的不是很完善
  3. 你说的内存泄漏是不会有的,Respository 并没有持有 ViewModel 的引用,同时 ViewModel 内部已经做了声明周期的监听,当 View 销毁的时候会做出相应的处理

from coroutineswanandroid.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.