# How to Preserve Screen State Across Multiple Navigation Stacks

A guide to managing UI state in independent back stacks with Navigation 3.

- **Source:** [ProAndroidDev - Medium](https://brifing.si/source/d9553fa9-7b72-4b9b-bc73-c6bf9a40dd5f)
- **Published:** 2026-07-20
- **Topic:** [Software & Engineering](https://brifing.si/c/engineering)
- **Original article:** <https://proandroiddev.com/rememberdecoratednaventries-makes-remembersaveable-work-across-multiple-navbackstacks-bb7a984ef266?source=rss----c72404660798---4>
- **On Brifing:** https://brifing.si/s/5736800f-0d07-43fa-a89e-51b604f73ce8

## The Multi-Tab Navigation Challenge

Modern mobile apps require separate navigation histories for each tab. However, local UI state (e.g., search queries) can be lost during tab switches. This article explains how Jetpack Navigation 3 solves this with rememberDecoratedNavEntries.

## Limitations of rememberSaveable

While rememberSaveable preserves UI state during configuration changes, it falls short for multiple navigation stacks. Traditional approaches lose state during tab switches because state management is tied to a single composition.

## New Approach: Decorated NavEntries

Navigation 3's rememberDecoratedNavEntries API creates state scopes for each navigation entry. This allows independent preservation of states, like a search bar in Home tab versus Search tab.

## The Role of NavEntryDecorator

The rememberSaveableStateHolderNavEntryDecorator creates separate state storage for each NavEntry. Screens can continue using standard rememberSaveable regardless of their navigation stack.

## High-Level vs Low-Level APIs

Navigation 3 offers both high-level APIs like NavDisplay(backStack) for simplicity and low-level control via rememberDecoratedNavEntries. Developers can use low-level APIs for multi-stack scenarios to build more explicit architectures.

## Result: Clean Architecture

This approach separates UI logic from navigation state management, enabling more maintainable code. Screens focus solely on UI while state management becomes automatic via NavEntryDecorators. An ideal solution for complex multi-tab applications.

## Sources covering this story

- https://proandroiddev.com/rememberdecoratednaventries-makes-remembersaveable-work-across-multiple-navbackstacks-bb7a984ef266?source=rss----c72404660798---4 — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
