In `Nav3` ```fun <T : NavKey> NavBackStack<T>.pus...
# compose
u
In
Nav3
Copy code
fun <T : NavKey> NavBackStack<T>.push(navKey: T) {
    if (!contains(navKey)) {
        add(navKey)
    }
}
should this be wrapped in
Snapshot.withMutableSnapshot { .. }
?
p
I see only one mutating operation so I don't think so
u
ismt it then "check then act" problem?
p
I don't think that problem applies here. withMutableSnapshot is basically to make many updates to the state but triggering only one recomposition. In this case there is only one update to the state
u
I see