replaceWith

open fun replaceWith(@NonNull navigationHistory: NavigationBackStack<T>)

Replaces navigation back stack with another instance. Keeps all back stack listeners.

Parameters

navigationHistory

New navigation back stack.