penguyen1 / Padticular

1 stars 0 forks source link

Homepage -- getting user uid #19

Closed penguyen1 closed 8 years ago

penguyen1 commented 8 years ago

Upon Signup & Login, ref.onAuth( callback ); works in both components, but it does not work in Homepage Component (returns null) WHYYYYYYYYY???

shouldn't the user's auth state be accessible throughout all the components?

maybe I should pass in the uid to Homepage via this.props.user and utilize the user uid for all other queries that way.

penguyen1 commented 8 years ago

solved using ref.getAuth( );

user auth is not logged in if returned value is null