You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I have a question relating controllers that was created using Get.create instead of Get.put / Get.lazyput.
I notice whenever we call Get.find() even with using tag, it will always call onInit method.
e.g:
Lets say I have Get.create Page1Controller, whenever other pages controller lets say Page2Controller call Page1Controller's controller just to use its function, I need to Get.find Page1Controller's which will result in calling Page1Controller's onInit method.
Any idea how to prevent this? Or am I using it wrongly?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I have a question relating controllers that was created using Get.create instead of Get.put / Get.lazyput.
I notice whenever we call Get.find() even with using tag, it will always call onInit method.
e.g:
Lets say I have Get.create Page1Controller, whenever other pages controller lets say Page2Controller call Page1Controller's controller just to use its function, I need to Get.find Page1Controller's which will result in calling Page1Controller's onInit method.
Any idea how to prevent this? Or am I using it wrongly?
Beta Was this translation helpful? Give feedback.
All reactions