Stopping subscriptions in a tabbed interface

I have a page with a tab based navigation. The tab section has three tabs. Each tab is supposed to show rows of data from different collections.Is there a way i can use to stop subscriptions to other tabs and only have the active tab subscribed?

I have read through this thread that discusses how i can stop subscriptions How to actively stop subscriptions efficiently

but the method will only work when you are going from template to template.

I am using that approach in my application, where every tab content has its own template and is being selectively rendered based on the selected tab. I am using template based subscription. Works like a charm.

2 Likes