Skip to content

perf: add IndexedDB local cache for historical proposals, closes #248#252

Open
bigvictoh wants to merge 1 commit into
StellarFlow-Network:mainfrom
bigvictoh:feat/248-indexeddb-proposal-cache
Open

perf: add IndexedDB local cache for historical proposals, closes #248#252
bigvictoh wants to merge 1 commit into
StellarFlow-Network:mainfrom
bigvictoh:feat/248-indexeddb-proposal-cache

Conversation

@bigvictoh
Copy link
Copy Markdown

perf: IndexedDB local storage cache for historical proposals

Reloading deep historical voting data on every session refresh was straining
application memory limits. This adds a lightweight IndexedDB sync layer that
persists proposal collections to the browser's local database.

Changes:

  • New useProposalCache hook (src/app/hooks/useProposalCache.ts) — wraps
    IndexedDB with saveProposals, loadProposals, and clearProposals using a
    single persistent connection via useRef
  • Governance page hydrates from IndexedDB on mount; seeds the cache on first
    visit and pulls from local storage on all subsequent reloads

Closes #248

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@bigvictoh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

🗃️ Perf | IndexDB Local Storage Cache for Historical Proposals

2 participants