Giter VIP home page Giter VIP logo

mvi-dispatcher's Issues

BaseFragment的addOnBackPressed()存在问题

##场景
新建一个fragment继承自BaseFragment,覆写onBackPressed,返回false,程序会死循环
##原因:
如果fragment中的onBackPressed返回false,那么事件会重新分发给该fragment,就死循环crash了
##目标:
当onBackPressed return false时,再次分发时过滤该OnBackPressedCallback

【 提问须知 】

如有 bug,请另外 new 一个 issue ⚠️⚠️⚠️

本项目开 issue 规范:

  1. 有任何 bug 都欢迎及时开 issue,我看到后则予以处理。
  2. 如有使用疑问,请先认真阅读 Readme 和源码 samples,在没有找到答案后,另外开 issue。
  3. 如开 issue 是为发表个人见解,请务必 客观、具体、严谨;严禁草率、乱入、带节奏:

务必注明观点所对应场景,并附上完整可复现代码,

不然很难构成有效交流。

任何缺乏实证依据和因果逻辑的泛泛而谈,都可能对其他使用者造成困扰。

在发表个人见解前,请先确保已认真阅读过源码。这是对自己、对作者、对其他读者最起码尊重。

livedate

项目中没有使用到databinding,请问页面状态state如何优雅的替换成 livedate。
旧项目比较庞大,替换datebinding 比较耗时,因此求教。

Lifecycle库版本报错提示

继承自MviDispatcher的类IDE会提示错误
Cannot access 'androidx.lifecycle.FullLifecycleObserver' which is a supertype of 'com.xx.zz.event.messenger.BlockMessenger'. Check your module classpath for missing or conflicting dependencies
看起来好像是Lifecycle版本冲突,但是不影响编译和运行。所有使用的地方都有红线提示,看起来有点难受。
现在项目用的Lifecycle版本是2.7.0,能否升级一下依赖库版本?

img_v3_027m_5c2f2e91-5cf1-4ffa-8aa5-4507878595eg
image

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.