Git Product home page Git Product logo

Comments (3)

nandakista avatar nandakista commented on June 7, 2024 1

@Trung15010802
Ahh I see, I've reproduce with 3 screens and Get.put the controller in SecondScreen
When I see the log it's printed that Controller has been deleted/disposed.
But when I try to Get.find the controller in ThirdScreen, I got it. I can access the controller with Get.find so I think it is not really dispose although the log say its disposed. I think the bug is in the log itself

I am sorry but for an easier way than using binding, I've never explored it, because I've always using route binding in my project. Maybe wait other response for this

from getx.

nandakista avatar nandakista commented on June 7, 2024

No bro, it is not bug.
If you wanna dispose controller automatically you need put your controller inside binding and set the binding to the GetPage in your route

@Trung15010802

from getx.

Trung15010802 avatar Trung15010802 commented on June 7, 2024

@nandakista
Thank for your response. But if i create another screen called ThirdScreen and I put Controller in SecondScreen instead of MyHomePage then i use Get.off(()=>ThirdScreen()), the controller will be automatically dispose. Can you explain me why? And is there an easier way than using binding?

from getx.

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.