Skip to content
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

Update page.tsx #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update page.tsx #30

wants to merge 1 commit into from

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