We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43917e3 commit 81f3440Copy full SHA for 81f3440
lib/framework/data_context.dart
@@ -274,6 +274,10 @@ class DataContext {
274
[SourceLocation? startLoc]) {
275
try {
276
_contextMap['getStringValue'] = Utils.optionalString;
277
+ // TODO: Added temporarily because the externalDataContext datas are not exposed when it's inside the nested callback methods
278
+ // Ex: Not working when this (widget.dataContext.addDataContext({'messageText': 'Data - EnsembleUI'});) inside the
279
+ // addPostFrameCallback method in screen.dart
280
+ _contextMap.addAll(Ensemble.externalDataContext);
281
return JSInterpreter(codeBlock, program, _contextMap).evaluate();
282
} on JSException catch (e) {
283
if (e.detailedError is EnsembleError) {
0 commit comments