{
  "status": "Illustrative acceptance plan, not an executable test suite or observed production result",
  "topic": "React Native account switching cache leaks",
  "date": "2026-11-04",
  "sourceArticle": "https://aptixlabs.com/insights/react-native-account-switching-cache",
  "setup": [
    "Use synthetic accounts and records",
    "Record the environment and implementation version",
    "Agree the expected product contract before testing"
  ],
  "reviewSequence": [
    "Inventory query local-storage and global-state caches",
    "Bind asynchronous work to the initiating identity",
    "Test rapid logout login and delayed responses"
  ],
  "cases": [
    {
      "id": "1",
      "condition": "Old request completes after account switch",
      "expectedBehavior": "Its result cannot enter the new account state",
      "observedBehavior": null,
      "status": "not_run"
    },
    {
      "id": "2",
      "condition": "Persisted cache is restored",
      "expectedBehavior": "The stored identity must match",
      "observedBehavior": null,
      "status": "not_run"
    },
    {
      "id": "3",
      "condition": "Logout occurs offline",
      "expectedBehavior": "Sensitive local state still clears",
      "observedBehavior": null,
      "status": "not_run"
    }
  ],
  "tradeoff": "Clearing every cache on every transition is simple but may reduce startup speed. Preserve only data whose identity and retention behavior are explicit and tested."
}