Component as snippet that includes another component

Is it possible - and how if so to include a component inside another component that’s used as a snippet?

This works if the component is placed normally inside a page:

$this->addComponent('...);

But when used as a snippet the nested component isn’t showing.

Hi @adamo
did you register the component as a snipper in the plugin or is it just a partial file in the snippets folder of your theme?

The snippet is registered via the plugin.

then make sure to $this->addComponent('...); in the init method of your component, it should be working

I’ve it added like this. When used in a page setting it works but as a snippet it doesn’t. The’re no errors in the console either.