Skip to content

Add integration test for wallet disconnect clearing all cached query data #587

Description

@Chucks1093

Summary

When a user disconnects their wallet, stale query data from their session (holdings, trade history, portfolio) should be cleared from the React Query cache so the next user connecting on the same device does not see leftover data.

Scope

  • Seed the React Query cache with holdings and trade history data for a connected wallet
  • Simulate a wallet disconnect
  • Assert the holdings query cache is cleared
  • Assert the trade history query cache is cleared
  • Assert the creator list query cache is NOT cleared (it is public data)

Acceptance Criteria

  • Holdings cache cleared on wallet disconnect
  • Trade history cache cleared on wallet disconnect
  • Creator list cache preserved on wallet disconnect
  • No stale wallet-scoped data remains in cache after disconnect

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions