Skip to content

marketplace real-time update handler can produce stale state and duplicate bid count increments #292

Description

@grantfox-oss

app/marketplace/page.tsxincrementsbidCount` on every websocket update without checking if the bid is actually new. Fix race conditions and stale updates.

  • Impacted files: app/frontend/src/app/marketplace/page.tsx, app/frontend/src/hooks/useRealtimeUpdates.ts, app/frontend/src/components/UsernameCard.tsx, app/frontend/src/hooks/marketplaceApi.ts, app/frontend/src/__tests__/**/*.test.tsx, app/frontend/src/components/ListingDetailModal.tsx

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions