Skip to content

Commit 7d6feb3

Browse files
authored
Add missing isActive parameter (#3296)
1 parent 121b608 commit 7d6feb3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,8 @@ extension NavigationLink {
380380
isActive: Binding(
381381
get: { item.wrappedValue != nil },
382382
set: { isActive, transaction in
383-
if isActive {
384-
onNavigate()
385-
} else {
383+
onNavigate(isActive)
384+
if !isActive {
386385
item.transaction(transaction).wrappedValue = nil
387386
}
388387
}

0 commit comments

Comments
 (0)