-
Notifications
You must be signed in to change notification settings - Fork 0
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
resultの結果をuseEffectからuseContextに移行 #163
Conversation
Visit the preview URL for this PR (updated for commit 9f46301): https://todo-real-c28fa--pr163-feat-142-result-usec-dx96vlz2.web.app (expires Thu, 23 Jan 2025 16:11:33 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: cbf065b4d5e2f44e47cd594ff42f749fc108f410 |
dfb56bb
to
ef20dd6
Compare
c0334fa
to
6753726
Compare
TODO
|
c3d18da
to
e2015b5
Compare
49a02aa
to
d670289
Compare
d670289
to
7023009
Compare
9637b8d
to
1af7a18
Compare
// keyGenerator: (req) => { | ||
// const key = req.headers["x-forwarded-for"] || req.ip || "unknown"; | ||
// return Array.isArray(key) ? key[0] : key; | ||
// }, |
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.
これの影響で全員limitが共通になっていたので一旦解除
Closes 目標作成時・削除時に更新が入らない
Closes resultのlimitとoffsetがずれてる
概要
resultの値をuseContextで保存するように変更
変更内容
useCotextを使用することでfetch回数を減らし、ロード時間の削減もできる
また、目標を作成・変更・削除した時にリロードなくても表示を更新することができる
useContextでデータの保存方法が変わったことで他の人の目標も見れるようになった
確認方法
チェックリスト