[resolved] CustomAttribute not working properly when view loaded with the composition engine

I am currently try to dynamically load a ViewModel using the CompositionEngine.compose() api. It works well in many ways but I face issues with CustomAttributes inside the loaded View.

The issue is that the custom attribute works perfectly when the view is loaded “normally” but don’t work when the view is loaded with the composition engine.

I’ve put together a small git repro and a dumber gist as well. Hopefully someone familiar with the composition engine can show me what I’m doing wrong ??

1 Like

Thanks to @bigopon helping me here. The issue was that when using a new ViewSlot() we need to manually call it’s .attached() method.