Skip to content

Add a stale data indicator to the creator profile page when the React Query cache is older than 60 seconds #769

Description

@Chucks1093

Summary

When a user has the creator profile page open for more than 60 seconds without a refresh, the displayed data may be stale. A subtle 'Data may be outdated — refresh' badge near the key stats should signal this and trigger a refetch on click.

Scope

  • Show the badge when the query's dataUpdatedAt is more than 60 seconds ago
  • Clicking the badge triggers an immediate refetch and hides the badge
  • Badge dismisses automatically when the background refetch completes
  • Badge not shown when the page first loads (data is fresh)

Acceptance Criteria

  • Badge appears after 60 seconds of no refresh
  • Clicking badge triggers refetch and hides badge
  • Badge dismissed automatically on refetch completion
  • Badge not shown on initial page load

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions