GithubHelp home page GithubHelp logo

Comments (3)

Blankj avatar Blankj commented on September 15, 2024

你 post 的 event 居然发送 Fragment/Activity ,这不泄露就鬼了,你去试试 EventBus 你这样操作看会泄露不,post 可以是一个普通的实体对象或者接口,不要整 Fragment/Activity。

from rxbus.

qianshengta avatar qianshengta commented on September 15, 2024

我明白你的意思了。意思是说我在Fragment实现了这个接口,然后发送this,我的本意是发送这个接口,其实我是把整个Fragment发送过去了。我应该把这个接口单独实现,然后发送过去对吧

from rxbus.

Blankj avatar Blankj commented on September 15, 2024

是的,你需要啥就发送啥,不要把涉及到生命周期的东西发过去

from rxbus.

Related Issues (20)

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.