push

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

Pushes a new location onto the history stack, increasing its length by one. If there were any entries in the stack after the current one, they are lost.

Parameters

to
  • The new URL

state
  • Data to associate with the new location