fix: clear in-memory caches on wallet disconnect#124
Draft
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Deploying interwovenkit-staging with
|
| 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 |
Deploying interwovenkit with
|
| 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 |
Deploying interwovenkit-testnet with
|
| 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 |
8f6ee7f to
14dab34
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
localStorageon disconnect and refactors SSE helpers to export cache-clearing utilities (typedQueryClient) used by the disconnect flow.Written by Cursor Bugbot for commit 14dab34. This will update automatically on new commits. Configure here.