Skip to content

Commit

Permalink
fix: concurrent modification at navigator disposing on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Nov 6, 2023
1 parent 68381cc commit 57580a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public class Navigator @InternalVoyagerApi constructor(
) {
ScreenLifecycleStore.remove(screen)
stateKeys
.asSequence()
.toMutableSet() // Copy
.filter { it.startsWith(screen.key) }
.forEach { key ->
stateHolder.removeState(key)
Expand Down

0 comments on commit 57580a9

Please sign in to comment.