Actually I just realized that if `primaryContainer` is not set it will just be null, so in that case it the target property will be ignored, and the components will get rendered to the root. I think the code is ok as is.