Skip to content

useTransactionHistory: add polling for new events #752

@Ejirowebfi

Description

@Ejirowebfi

Description

useTransactionHistory.ts fetches events once on mount. New transactions are not reflected until the user manually refreshes. Polling every 30 seconds would keep the history current.

Tasks

  • Add a setInterval (30 s) in useTransactionHistory to re-fetch events
  • Clear the interval on component unmount
  • Show a "Last updated X seconds ago" indicator
  • Add a manual "Refresh" button as an alternative

Acceptance Criteria

  • New events appear within 30 seconds without a page refresh
  • Interval is cleared when the component unmounts (no memory leak)
  • Manual refresh button triggers an immediate fetch

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions