replaceAll
Replaces the root destination and removes every destination above it.
Keeping the root slot in place avoids briefly leaving the back stack empty, which is useful when navigation state is observed by Navigation 3.
Replaces the root destination and removes every destination above it.
Keeping the root slot in place avoids briefly leaving the back stack empty, which is useful when navigation state is observed by Navigation 3.