edvin
10/28/2016, 5:13 PMfind() inside init or inside the override val root = expression, you will call find before the framework would have a chance to call component.scope = theScope. I solved this with a threadlocal, so that the value can be set before newInstance() is called. This seems to work like a charm.