createLocation

external fun createLocation(current: String, to: To, state: Any? = definedExternally, key: String = definedExternally): Location<*>(source)
external fun createLocation(current: Location<*>, to: To, state: Any? = definedExternally, key: String = definedExternally): Location<*>(source)

Creates a Location object with a unique key from the given Path