From 7d6feb385af65b982ec531712ae5db6ced29e54c Mon Sep 17 00:00:00 2001 From: Hyunjin Date: Fri, 23 Aug 2024 08:14:57 +0900 Subject: [PATCH] Add missing `isActive` parameter (#3296) --- .../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 } }