Comments (3)
@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.
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
from getx.
@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)
- Nested GetRouterOutlet not working as expected HOT 2
- UI Not Updating with Switch/Toggle in ListView using GetX Controller
- Back button in browser don't behave the same as Get.back()
- Reactive variable observation issues HOT 2
- 是否可以在 GetMiddleware 中拿到正确的 arguments 值
- GetxController value change listen is called without widget init
- get.dialog is automatic dismiss when app lifecycle is background.
- Margin of The GetSnackBar is Blocking Clickable Widget Under the Snackbar
- any suggestions to support deferred for GetMaterialApp?
- Get.arguments coming Null for Unit test
- Add zh_Hans and zh_Hant when using multiple languages
- Null check operator used on a null value HOT 2
- Routing_issue
- iOS swipe back works with new PopScope widget and canPop: false HOT 2
- How to cancel execution request for GetConnect like Dio's CancelToken
- How to print request data
- Can you add a new folder name : "widgets" when every time we create new page or first time init get in new project
- Can you add a new folder name : "widgets"
- Caching data from api with Getconnect
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 getx.