Closed asg017 closed 4 years ago
This doesn’t require any runtime change—just a compiler change. For example, in @d3/bar-chart-remix, instead of
main.import("chart", child1);
the compiled code would need to say
main.variable(observer("chart")).import("chart", child1);
Perfect, thank you so much! I was working on my own compiler, so I'll fix it there.
(closing since this has nothing to do with the runtime)
Basically a rehash of this forum post. It would be nice if the observer function was invoked for imported cells.
I tried to do this in a fork, by passing the observer parameter from module_import into the Variable constructor, but then this test fails: