{
  "id": 20436013,
  "title": "Navigation 3: You Own the Back Stack Now. Here’s How Not to Leak It",
  "url": "https://urgent.news/2026/11/17/navigation-3-you-own-the-back-stack-now-heres-how-not-to-leak-it",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-17T13:22:15.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sivavishnu_r_1ee8971ed42d/navigation-3-you-own-the-back-stack-now-heres-how-not-to-leak-it-27bl"
  },
  "original_language": "en",
  "account": "Navigation 3 gives you direct access to the back stack as plain state. There's no controller to consult, no graph to inflate, and no hidden lifecycle you can only observe. You possess a list, you alter the list, and the UI automatically adapts. This newfound freedom comes with a whole new set of potential bugs, as all the assurances that the old library quietly enforced (one entry per destination, cleanup on pop, restoration after process death) are now your responsibility. This article examines five key areas where developers commonly encounter problems: modeling nested flows, restoring after process death, scoping ViewModels, predictive back, and identifying leaks before they affect users. The mental model: a list of keys and a function. Nav3 consists of two main components. The keys are compact, immutable values that define the user's current location. A NavDisplay converts this list of keys into UI via an entry provider.",
  "summary": "Navigation 3 hands you the back stack as plain state. There is no controller to ask, no graph to inflate, no hidden NavBackStackEntry lifecycle you can only observe. You hold a list, you mutate the list, and the UI follows. That is freedom. It is also a whole new class of bugs, because every guarantee the old library enforced quietly (one entry per destination, cleanup on pop, restoration after…",
  "key_points": [
    "Navigation 3 provides direct access to back stack as plain state",
    "Developers must manage one entry per destination, cleanup, restoration",
    "Nav3 consists of keys (compact, immutable) and NavDisplay (UI conversion)"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}