Summary
When a creator profile is served from the React Query cache without a network request, there is no log recording the hit or how old the cached data is. A debug-level log on cache hit would help developers verify that caching is working as intended in production.
Scope
- Add a query observer on the creator profile query that fires when data is returned from cache (
isFetching: false and isStale: false immediately on mount)
- Emit a debug-level log with fields:
creator_id, cache_status: 'hit', data_age_ms (time since the query was last fetched)
- Log must not fire when the query performs a network fetch
- Log not emitted in the test environment
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
When a creator profile is served from the React Query cache without a network request, there is no log recording the hit or how old the cached data is. A debug-level log on cache hit would help developers verify that caching is working as intended in production.
Scope
isFetching: falseandisStale: falseimmediately on mount)creator_id,cache_status: 'hit',data_age_ms(time since the query was last fetched)Acceptance Criteria
data_age_msreflects time since last successful fetchETA: 12 hours
Coordinate on Telegram