Summary
The investor portfolio query refetches on every visit, showing a spinner even when the data has not changed. Setting a staleTime should serve the cached portfolio instantly and revalidate in the background so the page feels responsive on repeat visits.
Scope
- Set
staleTime to 60 seconds on the investor portfolio query
- Serve cached positions immediately on repeat visits without a spinner
- Show a subtle 'Refreshing…' indicator only when a background refetch is in progress
- Invalidate the cache immediately after a new investment is confirmed
- Confirm stale data is not served if the user has been away for more than 60 seconds
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The investor portfolio query refetches on every visit, showing a spinner even when the data has not changed. Setting a
staleTimeshould serve the cached portfolio instantly and revalidate in the background so the page feels responsive on repeat visits.Scope
staleTimeto 60 seconds on the investor portfolio queryAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram