Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Yash-2707
Copy link
Contributor

Added error handling for the fetchUser function to log any errors that occur during the user fetch process. Added a handleLogout function that signs the user out and redirects them to the login page.
Added a loading state to display a spinner while fetching user details. This improves the user experience by providing feedback that something is happening.
UI Enhancements

Added error handling for the fetchUser function to log any errors that occur during the user fetch process.
Added a handleLogout function that signs the user out and redirects them to the login page.
 Added a loading state to display a spinner while fetching user details. This improves the user experience by providing feedback that something is happening.
UI Enhancements
Copy link
Contributor

@junruxiong junruxiong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. UseEffect may not the best way for server side components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants