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

フロントエンドで認証 #128

Merged
merged 3 commits into from
Jan 26, 2025
Merged

フロントエンドで認証 #128

merged 3 commits into from
Jan 26, 2025

Conversation

ikura-hamu
Copy link
Member

  • ✨ ログインできるようにする
  • ✨ 自分のアイコンを表示

@ikura-hamu ikura-hamu requested a review from Copilot January 26, 2025 02:29
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

return <Button onClick={loginOnClick}>ログイン</Button>;
}

setMe({ id: resUser.user?.id, name: resUser.user?.name } as User);
Copy link
Preview

Copilot AI Jan 26, 2025

Choose a reason for hiding this comment

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

The setMe call should be inside a useEffect hook to ensure it only runs when resUser changes.

Suggested change
setMe({ id: resUser.user?.id, name: resUser.user?.name } as User);
useEffect(() => { setMe({ id: resUser.user?.id, name: resUser.user?.name } as User); }, [resUser, setMe]);

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@ikura-hamu ikura-hamu merged commit 15c1b3b into main Jan 26, 2025
5 checks passed
@ikura-hamu ikura-hamu deleted the client/feat/auth branch January 26, 2025 02:38
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.

1 participant