Context mapping vs Instance variables
I am facing the following issue:
when should we map data to context and when should we keep data in instance variables?
Reasons for using context which come to mind:
- UI binding
- sharing data between controllers
backend call execution is not listed as you can execute the call just calling modelClass.execute(), so strictly speaking you can do without context mapping.
Using instance variables can speed development up since you needn't access context and nodes before actual data manipulation.
I would like to hear feedback from fellows developers, thanks