Skip to content

Fix analytics page stat cards flashing 0 during initial load #674

Description

@Austinaminu2

Description

`app/app/analytics/page.tsx:158` calls `useStreams({ enablePolling: false })`, which exposes a `loading` flag, but the page never destructures/consumes it — so the four top stat cards render misleading "0" values before real data resolves, instead of a loading state.

Location

`app/app/analytics/page.tsx:158`

Task

Destructure the `loading` flag from `useStreams()` and use it to render a loading skeleton/placeholder for the stat cards instead of flashing zero values.

Good for contributors because

Small, isolated fix — the loading flag already exists on the hook, it's just not being used.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingfrontendNext.js frontend

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions