-
Notifications
You must be signed in to change notification settings - Fork 71
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
bookmark-buttonをVueからReactに置き換え #7488
Conversation
b195140
to
40f55bc
Compare
} | ||
} | ||
}, [data]) | ||
|
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.
data
にAPIを叩いた結果が入ります。
レスポンスが返るとdata
がtrue
になります。
すでにブックマーク済なら data.bookmarks.length > 0
がtrue
になります
bookmarkId = data.bookmarks[0].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.
bookmarkId = data.bookmarks[0].id
をuseEffect
の中で行うとbookmarkId
がnullのままとなるためこちらに移しています。
@taco-nantai |
@kyokucho1989 |
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します👍
@taco-nantai |
40f55bc
to
11b356b
Compare
@komagata |
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.
確認させていただきました。OKです~👌
Issue
概要
Issueに記載。ブックマークボタンをVueからReactに置き換えました。
変更確認方法
foreman start -f Procfile.dev
を実行してbootcampを起動する注意
Bookmark-button.vue
の動作ではないため、変更していません。Screenshot
変更前後で変わりはありません。