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

resultの結果をuseEffectからuseContextに移行 #163

Merged
merged 8 commits into from
Jan 16, 2025

Conversation

MurakawaTakuya
Copy link
Owner

@MurakawaTakuya MurakawaTakuya commented Jan 14, 2025

Closes 目標作成時・削除時に更新が入らない
Closes resultのlimitとoffsetがずれてる

概要

resultの値をuseContextで保存するように変更

変更内容

useCotextを使用することでfetch回数を減らし、ロード時間の削減もできる
また、目標を作成・変更・削除した時にリロードなくても表示を更新することができる
useContextでデータの保存方法が変わったことで他の人の目標も見れるようになった

確認方法

チェックリスト

  • PRに必要な内容を記述し、Assignやタイトルを設定した
  • File Changedで不要な変更や誤った変更が無いか確認した
  • 対応したissueをProjectの"レビュー中・待機中"に移動した
  • レビューを頼んだ人にDiscordでお願いした
  • 機密情報が含まれていないことを確認した(含まれている場合は直ちにリモートからコミットを削除すること)
  • UIを変更した場合
    • PCで見た時に表示が崩れていないことを確認した
    • スマホでも正常に表示されることを確認した(大きい画面と小さい画面両方で)

@MurakawaTakuya MurakawaTakuya self-assigned this Jan 14, 2025
Copy link

github-actions bot commented Jan 14, 2025

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

@MurakawaTakuya MurakawaTakuya force-pushed the feat/142-result-useContext branch from dfb56bb to ef20dd6 Compare January 15, 2025 01:54
@MurakawaTakuya MurakawaTakuya force-pushed the feat/142-result-useContext branch 4 times, most recently from c0334fa to 6753726 Compare January 16, 2025 09:39
@MurakawaTakuya
Copy link
Owner Author

MurakawaTakuya commented Jan 16, 2025

TODO

  • offsetを実際に取得しに行った数の値にする
  • functionsのfailedとsuccessのソート方法を変更

@MurakawaTakuya MurakawaTakuya force-pushed the feat/142-result-useContext branch from c3d18da to e2015b5 Compare January 16, 2025 09:52
@MurakawaTakuya MurakawaTakuya force-pushed the feat/142-result-useContext branch from 49a02aa to d670289 Compare January 16, 2025 11:48
@MurakawaTakuya MurakawaTakuya force-pushed the feat/142-result-useContext branch from d670289 to 7023009 Compare January 16, 2025 15:32
@MurakawaTakuya MurakawaTakuya force-pushed the feat/142-result-useContext branch from 9637b8d to 1af7a18 Compare January 16, 2025 15:59
Comment on lines +72 to +75
// keyGenerator: (req) => {
// const key = req.headers["x-forwarded-for"] || req.ip || "unknown";
// return Array.isArray(key) ? key[0] : key;
// },
Copy link
Owner Author

@MurakawaTakuya MurakawaTakuya Jan 16, 2025

Choose a reason for hiding this comment

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

これの影響で全員limitが共通になっていたので一旦解除

@MurakawaTakuya MurakawaTakuya marked this pull request as ready for review January 16, 2025 16:04
@MurakawaTakuya MurakawaTakuya merged commit e0070a1 into main Jan 16, 2025
4 checks passed
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.

resultのlimitとoffsetがずれてる 目標作成時・削除時に更新が入らない
1 participant