inProgress-team / react-native-meteor

Meteor Reactivity for your React Native application :)
MIT License
693 stars 210 forks source link

Meteor.logout() disconnects the app from DDP server causing subscription issues #271

Open rj-david opened 7 years ago

rj-david commented 7 years ago

Whenever I call Meteor.logout(), the app momentarily disconnects from the DDP server.

This quick disconnection and reconnection resulted to subscription errors: "No subcription existing for [publication name]"

Do we need Meteor.logout to disconnect from the server?

redwind commented 6 years ago

You should add condition ‘if(Meteor.user())’ before Meteor.subcribe()