Skip to content

Conversation

@freepilot-bot
Copy link

Fixes #2949

commit 44df2be
Author: freepilot-bot [email protected]
Date: Tue Jun 10 13:14:59 2025 +0000

feat: implement SWR caching for transaction list

- Add transaction caching functions to browser storage with 5min TTL
- Implement swrGetTransactions in api.ts for stale-while-revalidate pattern
- Update useTransactions hook to use SWR caching instead of direct API calls
- Add clearTransactionsCache function for manual cache invalidation
- Add refreshTransactions function to force fresh data when needed

This improves performance on slower wallet connections by showing cached
transaction data immediately while updating with fresh data in background.

- Add transaction caching functions to browser storage with 5min TTL
- Implement swrGetTransactions in api.ts for stale-while-revalidate pattern
- Update useTransactions hook to use SWR caching instead of direct API calls
- Add clearTransactionsCache function for manual cache invalidation
- Add refreshTransactions function to force fresh data when needed

This improves performance on slower wallet connections by showing cached
transaction data immediately while updating with fresh data in background.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Use SWR caching for transaction list

1 participant