Open johnpryan opened 7 years ago
Initialize polymer in a zone:
main() { runZoned(() async { await initPolymer(); }); }
a Polymer component handle (e.g. on-tap="tapHandler") should run in the same zone that called await initPolymer(): printing Zone.current should be a CustomZone, not the root zone.
on-tap="tapHandler"
await initPolymer()
Zone.current
The root zone
This seems related to https://github.com/dart-lang/sdk/issues/17301
It's also worth noting that the initPolymer() API used to return the zone in 0.16.0
initPolymer()
Description
Steps to Reproduce
Initialize polymer in a zone:
Expected Results
a Polymer component handle (e.g.
on-tap="tapHandler"
) should run in the same zone that calledawait initPolymer()
: printingZone.current
should be a CustomZone, not the root zone.Actual Results
The root zone