Nested templates and template level subscriptions

I’m using Template level subscription in my application with nested template structure. In the top level template (layout) I subscribed channels and invitations publications.
Do I need to subscribe again them in sub templates as well?
How can I inspect which subscriptions are visible to a sub template?

Thanks
Massimo

Collections are usually declared as global variables. So, client-side, they are visible to any template or sub-template. The fact that you subscribe (i.e. you fill the client-side collection) from a specific template does not change that.

Do I need to subscribe again them in sub templates as well?

You don’t.

How can I inspect which subscriptions are visible to a sub template?

You can check your active subscriptions with meteor.toys.
All active subscriptions are available to currently rendered templates.

1 Like