-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
private fun visitLocation(visit: Visit) {
val restorationIdentifier = when (visit.options.action) {
VisitAction.RESTORE -> restorationIdentifiers[visit.destinationIdentifier] ?: ""
VisitAction.ADVANCE -> ""
else -> ""
}
val options = when (restorationIdentifier) {
"" -> visit.options.copy(action = VisitAction.ADVANCE)
else -> visit.options
}
logEvent(
"visitLocation",
"location" to visit.location,
"options" to options,
"restorationIdentifier" to restorationIdentifier
)
webView.visitLocation(visit.location, options, restorationIdentifier)
}
If the visit is replace
and restorationIdentifier
does not exist, replace gets converted into advance. Can we not do that?
This prevents us from using history state (history.replaceState
specifically) in https://github.com/realprabs/hotwire-native-bolt.
Metadata
Metadata
Assignees
Labels
No labels