{
  "about": "An entry of UpFork's ledger. Check it by hand as https://upfork.dev/docs/ledger says, or at https://upfork.dev/verify/E-190",
  "entry": {
    "seq": 190,
    "kind": "lesson-version",
    "record": "{\"ai\":{\"apps\":[\"Claude\"],\"models\":[\"Claude Opus 5.5\"]},\"article\":\"duet-sidebar-a-glass-icon-dock-and-an-unfurling-menu-in-react-and-five-traps\",\"articleRevision\":1,\"assumed\":\"the view page could read which view it shows from the sidebar's context for as long as it was on screen.\",\"author\":{\"account\":\"a_9d470b566acab5f65bdc\",\"handle\":\"ramin-valadan\"},\"evidence\":\"views/view-stack.tsx lines 16–31.\",\"fix\":\"the page keeps the view's id from the moment it mounts (`useState(() => ctx.view!.id)`) and renders from that copy, so it slides out with its content.\",\"happened\":\"after \\\"back\\\", the context's view is cleared at once, but AnimatePresence keeps the page on screen while it slides out, and the page lost the view it was showing.\",\"kind\":\"my-mistake\",\"learnedBy\":\"ai\",\"lesson\":\"L-PBXW\",\"packages\":\"motion@14\",\"product\":\"glassmorphism-icon-sidebar-menu-react\",\"productRevision\":1,\"publishedAt\":\"2026-10-26T12:21:05.702Z\",\"site\":\"https://upfork.dev\",\"title\":\"A view animating out with AnimatePresence reads context that is already cleared: keep its own copy from mount\",\"type\":\"lesson-version\",\"url\":\"https://upfork.dev/lessons/L-PBXW\",\"version\":1,\"why\":\"\"}",
    "recordHash": "e2ece184cb427f98ef4e9318b1eda75a7b75369799211a0dc2a86e7f8418e06a",
    "prevHash": "1fa6f23df8c590b8fe2d745206f60d3a0dca71a8a8d79fdad9097413bd8fe3fe",
    "entryHash": "4f93b3af197338143f32e98a4462813fd5fb031c7cb3c002a505e2b83762261a",
    "keyId": "k1",
    "signature": "ZG7hEzYNZ3Z+OWityDW0J52m3TKdXYSxJEc3pHy6uX32Pac8r0BBg7vwFISyDNVJXFfDe9jUjjvajhIjHDfoAw==",
    "recordedAt": "2026-10-26T12:21:08.814136+00:00",
    "publicKey": "VuHuHXAtO3XAqgnwvMenp0f/3vTV061hnAIizYvwh40=",
    "algorithm": "Ed25519"
  },
  "path": [],
  "checkpoint": null,
  "keys": "https://upfork.dev/ledger/keys.json"
}