From 7383f351c52c7eb81974a8428aea2c867c07d5f0 Mon Sep 17 00:00:00 2001 From: Asanka Date: Thu, 24 Apr 2025 11:44:00 +1000 Subject: [PATCH 1/2] Update navigation-state.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even though it isn’t actually incorrect—just illustrative rather than literal, It can definitely feel confusing at first glance because routes will only contain the screens that were in your persisted (partial) state The example is bit bit misleading if you assume it’s a one-to-one transformation of the names you passed in --- versioned_docs/version-6.x/navigation-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-6.x/navigation-state.md b/versioned_docs/version-6.x/navigation-state.md index 46d2bf13a2c..9cf518e6ee7 100644 --- a/versioned_docs/version-6.x/navigation-state.md +++ b/versioned_docs/version-6.x/navigation-state.md @@ -101,7 +101,7 @@ const state = { routeNames: ['Home', 'Profile', 'Settings'], routes: [ { key: 'home-1', name: 'Home' }, - { key: 'settings-1', name: 'Settings' }, + { key: 'profile-1', name: 'Profile' }, ], index: 1, stale: false, From 58c547dd4040a0089e0721002f42188980f5b482 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Fri, 9 Jan 2026 14:28:19 +0100 Subject: [PATCH 2/2] Update for 7.x & 8.x --- versioned_docs/version-7.x/navigation-state.md | 2 +- versioned_docs/version-8.x/navigation-state.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/versioned_docs/version-7.x/navigation-state.md b/versioned_docs/version-7.x/navigation-state.md index 6ee3a9a9c58..f4b8dc31e97 100644 --- a/versioned_docs/version-7.x/navigation-state.md +++ b/versioned_docs/version-7.x/navigation-state.md @@ -137,7 +137,7 @@ const state = { routeNames: ['Home', 'Profile', 'Settings'], routes: [ { key: 'home-1', name: 'Home' }, - { key: 'settings-1', name: 'Settings' }, + { key: 'profile-1', name: 'Profile' }, ], index: 1, stale: false, diff --git a/versioned_docs/version-8.x/navigation-state.md b/versioned_docs/version-8.x/navigation-state.md index fe2ffe8878d..b575e321bbc 100644 --- a/versioned_docs/version-8.x/navigation-state.md +++ b/versioned_docs/version-8.x/navigation-state.md @@ -158,7 +158,7 @@ const state = { routeNames: ['Home', 'Profile', 'Settings'], routes: [ { key: 'home-1', name: 'Home' }, - { key: 'settings-1', name: 'Settings' }, + { key: 'profile-1', name: 'Profile' }, ], index: 1, stale: false,