Skip to content

[Bot] #2949 feat: swr transaction caching#3390

Open
freepilot-bot wants to merge 1 commit into
getAlby:masterfrom
freepilot-bot:feat/swr-transaction-caching-5
Open

[Bot] #2949 feat: swr transaction caching#3390
freepilot-bot wants to merge 1 commit into
getAlby:masterfrom
freepilot-bot:feat/swr-transaction-caching-5

Conversation

@freepilot-bot

Copy link
Copy Markdown

Fixes #2949

commit 44df2be
Author: freepilot-bot 215356755+freepilot-bot@users.noreply.github.com
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