Meteor.user() & Meteor.userID() turnoff autopublish and no subscription


#1

Hi ,

A basic query .

If I turn autopublish ,do I need to subscribe explicitly for Meteor,user() and Meteor.UserID() .
[ I turned off autopublish , it seems i am getting notifications when Meteor.user() is changed . I assume this is the right behaviour.]

Please let me know whether following is a right pattern .

I have currently turned off autopublish .
I am using tracker.autorun to track Meteor.user() .
When the user status changes , i am dispatching an action .

Does it means that for all reactive data sources , we don,t need to subscribe even if we turn off autopublish.

regards
Mahesh


#2

The subscription for the current user is persistently published via a null publication. This causes the current user to be available without the need for autopublish OR subscription to the publication. All other data that is not published in this manor must be explicitly published and subscribed to once the autopublish package is removed.


#3

Thank you .

"All other data that is not published in this manor must be explicitly published and subscribed to once the autopublish package is removed."
This means to access the data with other default reactive data sources needs to be subscribed explicitly when autopublish is removed .
-Mahesh