parse-community / ParseReact

Seamlessly bring Parse data into your React applications.
https://parseplatform.org
Other
1.3k stars 209 forks source link

ParseReact.currentUser not counting against pending queries? #165

Closed maqen closed 8 years ago

maqen commented 8 years ago

Trying to show different view on first load in navigator depending if user is logged in or not.

On first render is this.pendingQueries().length 0 and this.data.user equals undefined.

 mixins: [ParseReact.Mixin],

 observe: function() {
   return {
     user: ParseReact.currentUser
   };
 }
maqen commented 8 years ago

Guess way forward is to look for undefined null or object on this.data.user

maqen commented 8 years ago

After reading LocalSubscriptions