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
Presenters have view and router properties available.
At the same time the callback methods onTakeView(v), onTakeRouter(r) have view and router as parameters.
Very often developers launch different async jobs in that methods and capture strong references to views. For minimizing the number of issues related to it, it's better to get rid of those parameters and access views only as presenter's properties.
Also, if you use Kotlin, the property access syntax is available forgetView() and getRouter(), so within the onTakeView you won't need to call [email protected].
The text was updated successfully, but these errors were encountered:
Presenters have
view
androuter
properties available.At the same time the callback methods
onTakeView(v)
,onTakeRouter(r)
have view and router as parameters.Very often developers launch different async jobs in that methods and capture strong references to views. For minimizing the number of issues related to it, it's better to get rid of those parameters and access views only as presenter's properties.
Also, if you use Kotlin, the property access syntax is available for
getView()
andgetRouter()
, so within theonTakeView
you won't need to call[email protected]
.The text was updated successfully, but these errors were encountered: