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
We should not insert parent data into a child scope. This will leak the parent data into the child scope, and also breaks the layout-data interface. Removing this will also improve performance by avoiding the copying loop per scope object.
Here in the layout user.ll is not added to the data scope of the layout and is only accessible from the outer scope. user.ll should be added to the data scope instead. As follows:
We should not insert parent data into a child scope. This will leak the parent data into the child scope, and also breaks the layout-data interface. Removing this will also improve performance by avoiding the copying loop per scope object.
Data
Layout
Here in the layout
user.ll
is not added to thedata
scope of the layout and is only accessible from the outer scope.user.ll
should be added to the data scope instead. As follows:{
"type": "TextView",
"layout_width": "wrap_content",
"layout_height": "wrap_content",
"textSize": "14sp",
"data": {
"date": "@{fn:date(@{user.dt},'E, d MMM')}",
"loc": "@{user.ll}"
},
"text": "@{fn:format('last login: %s from %s',@{date},@{loc})}"
}
The text was updated successfully, but these errors were encountered: