replace

abstract fun replace(to: To, state: Any? = definedExternally)(source)

Replaces the current location in the history stack with a new one. The location that was replaced will no longer be available.

Parameters

to
  • The new URL

state
  • Data to associate with the new location