Commit 576d9f2
fix: don't report expo-image disk-cache misses for photo storage size (#1951)
getExpoImageStorageSize threw when expo-image's getCachePathAsync
returned null (a benign disk-cache miss), and the only caller reported it
to Sentry (COMAPEO-20Z).
Return number | null and treat null as 'no storage size' in
useImageLoadInfo. UI is unchanged (the label was already optional).
Making the label always show needs the blob server to send
Content-Length: comapeo-core#1281 + #1945.
Fixes COMAPEO-20Z.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 373ff31 commit 576d9f2
2 files changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 83 | + | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments