Repository navigation
ヘッダー系画像のキャッシュ衝突で無関係な画像が表示されるバグを修正 - #5824
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
📝 WalkthroughWalkthrough2つのコンポーネントに Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
TinyKitten
added a commit
that referenced
this pull request
Apr 17, 2026
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
HeaderJRWestの列車種別画像 (<Image />) とTransferLineMarkで、全く関係ない画像が表示される不具合を修正します。ThemeConfirmModalにも同様のキャッシュ衝突リスクがあったため予防的に修正しました。変更の種類
変更内容
原因
HeaderJRWest.tsxの<Image />にrecyclingKeyが付いておらず、expo-image がビュー再利用時に前の画像を一瞬表示してしまうことがあった。TransferLineMarkは内部でrecyclingKeyを使って制御していたが、親側でcurrentLineが切り替わったときに確実に再マウントさせるためのkeyが無かった。修正内容
HeaderJRWest.tsx<Image />(列車種別画像)にkeyとrecyclingKeyを追加(trainTypeImageのアセットIDベース)<TransferLineMark />にkey={currentLine?.id}を追加ThemeConfirmModal.tsxrecyclingKeyはあったが、一貫性のためkeyを追加補足
cachePolicy="memory-disk"は Android でのローカルアセット表示遅延対策として引き続き必要(expo-image v55 のデフォルトは'disk'のため)。ThemeConfirmModalは表示頻度が低いためデフォルト'disk'のまま。テスト
npm run lintが通ることnpm testが通ること(HeaderJRWest/TransferLineMarkの既存テスト 26件 全てパス)npm run typecheckが通ること関連Issue
なし
スクリーンショット(任意)
UI ロジック自体の変更は無く、キャッシュ周りの修正のため割愛。
🤖 Generated with Claude Code