From f52a9419b2b7d24539ed0efdc8daea3755ec846f Mon Sep 17 00:00:00 2001 From: HyunJin Date: Fri, 23 Aug 2024 01:57:01 +0900 Subject: [PATCH] Add missing `isActive` parameter --- .../Documentation.docc/Articles/TreeBasedNavigation.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md b/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md index ed0d9d8c3248..30422a2fedd6 100644 --- a/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md +++ b/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md @@ -380,9 +380,8 @@ extension NavigationLink { isActive: Binding( get: { item.wrappedValue != nil }, set: { isActive, transaction in - if isActive { - onNavigate() - } else { + onNavigate(isActive) + if !isActive { item.transaction(transaction).wrappedValue = nil } }