-
Notifications
You must be signed in to change notification settings - Fork 0
カートページに自動的にリダイレクトする #135
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
カートページに自動的にリダイレクトする #135
Conversation
frontend/app/routes/home/route.tsx
Outdated
| if (navigation.state === 'idle') { | ||
| if (userId) { | ||
| if (!!userData) { | ||
| // CookieにユーザIDが存在する |
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.
コメントも変えておこう
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.
コメント変えました
frontend/app/routes/home/route.tsx
Outdated
| // 状態変数にユーザ情報が保存されていない | ||
| // ユーザ情報を取得するAPIを呼び出す |
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.
コメントも変えておこう
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.
コメント変えました
| interface SessionData { | ||
| userId: string; | ||
| user: User; | ||
| sessionToken: string; |
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.
userの中にsessionTokenも含まれてるからsessionTokenは消しておこう
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.
消しました
|
この会話が解決してからApproveを出します |
チェックよろしく |
やったこと
確認した方法
pnpm run devで確認スクリーンショット
2024-11-14.13.51.26.mov
2024-11-14.13.53.08.mov
自動生成したコード