Skip to content

Comments

fix: clear in-memory caches on wallet disconnect#124

Draft
tansawit wants to merge 1 commit intomainfrom
fix/clear-caches-on-disconnect
Draft

fix: clear in-memory caches on wallet disconnect#124
tansawit wants to merge 1 commit intomainfrom
fix/clear-caches-on-disconnect

Conversation

@tansawit
Copy link
Contributor

@tansawit tansawit commented Jan 25, 2026

Note

Low Risk
Cache invalidation and cleanup only; no changes to signing/auth flows beyond clearing stored/cached state on disconnect.

Overview
Fixes stale state on wallet disconnect by clearing all in-memory caches before calling disconnect(): RPC client caches (clearClientCaches()), Move error registry cache (clearErrorCache()), and Minity SSE portfolio React Query cache (useClearSSECache() / clearSSEPortfolioCache()).

Also removes the per-address cached public key from localStorage on disconnect and refactors SSE helpers to export cache-clearing utilities (typed QueryClient) used by the disconnect flow.

Written by Cursor Bugbot for commit 14dab34. This will update automatically on new commits. Configure here.

@coderabbitai
Copy link

coderabbitai bot commented Jan 25, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/clear-caches-on-disconnect

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 25, 2026

Deploying interwovenkit-staging with  Cloudflare Pages  Cloudflare Pages

Latest commit: 14dab34
Status: ✅  Deploy successful!
Preview URL: https://c5f31654.interwovenkit-staging.pages.dev
Branch Preview URL: https://fix-clear-caches-on-disconne.interwovenkit-staging.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 25, 2026

Deploying interwovenkit with  Cloudflare Pages  Cloudflare Pages

Latest commit: 14dab34
Status: ✅  Deploy successful!
Preview URL: https://f5ac1de5.interwovenkit.pages.dev
Branch Preview URL: https://fix-clear-caches-on-disconne.interwovenkit.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 25, 2026

Deploying interwovenkit-testnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 14dab34
Status: ✅  Deploy successful!
Preview URL: https://2cc2a569.interwovenkit-testnet.pages.dev
Branch Preview URL: https://fix-clear-caches-on-disconne.interwovenkit-testnet.pages.dev

View logs

@tansawit tansawit added type:bug Something isn't working priority:medium labels Feb 18, 2026
@tansawit tansawit force-pushed the fix/clear-caches-on-disconnect branch from 8f6ee7f to 14dab34 Compare February 18, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant