function LandingPage(props) from '././firebase' Ĭonst = useState() Ĭonst username = props.email. I tried creating directly in firebase a document with the same UID as the logging user but the data that i am logging is still the last added document instead of the right for the specific user. How do i attach the User to see its own data. I am using firestore for my chat application. Currently, in my Firebase I have only 1 Collection which is Users and contains some documents any of the documents has their own fields it is all hardcoded for the sake of the test.Īfter the log in I am currently logging data but I only see the last added document. Connect and share knowledge within a single. However, I am trying to figure out how to fetch the data for the specific logged in user. Stack Overflow for Teams Start collaborating and sharing organizational knowledge. Got my Landing page in here with hardcoded username / password into firebase db.Īfter successful login, I am redirected to the homepage. Im trying to update the users profile after he created his account, but i cant find a way to trigger onAuthStateChanged() after updatingProfile().It seems like updating user profile is not considering as an auth change.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |