Unsubscribing to publication
Opened this issue · 1 comments
janzenz commented
Based on the Meteor document, specifically:
When you are subscribing, it is very important to ensure that you always call .stop() on the subscription when you are done with it.
Based on the document this is done on automatically on getMeteorData
:
However, if you call
Meteor.subscribe()
conditionally inside a reactive context (such as anautorun
, orgetMeteorData
in React) or viathis.subscribe()
in a Blaze component, then Meteor’s reactive system will automatically callthis.stop()
for you at the appropriate time.
Is this done automatically on react-komposer
or do we need to do it manually?
reggiepangilinan commented
No need to unsubscribe, it is automatically handled.
#5