-
Notifications
You must be signed in to change notification settings - Fork 86
useTransactionHistory: add polling for new events #752
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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) inuseTransactionHistoryto 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request