-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dropdown menu in sidebar #1038
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Palakkgoyal! for creating this pull request and contributing to Dummygram! 💗
The maintainers will review this Pull Request and provide feedback as soon as possible! 😇
We appreciate your patience and contribution, Keep up the great work! 😀
I think, as we are already querying the user's collection for user data and extracting username we can extract other details as well like name... Also, the auth object might've displayName already. We're not making any extra query. edit: as I am going though pr, it seems you've followed this only! thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
but wait, |
Yes, its inefficient to query for userdata on every page. Instead we should get it only at one place then use caching or session storage or context to deliver it to other components and if the data updates then, we can also update it in the context or any other method. |
agreed, will create an issue |
This PR closes #1017
I have added a dropdown list and also made it darkmode compatible. It works fine. I haven't dynamically added the name of user in the sidebar and replaced it with
Me
because whenever the page loads it take time to fetch user data. which result in delay in showing the name which doesn't look good.