Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to: #3529
Relates to: #3624
replaceRootHistory
was initially added by @chrismccord in 36edb48, but lost its purpose after less than three months with 04aaedc removing the only call that would actually setroot: true
in the history state.Me not knowing what
root: true
is supposed to do reused replaceRootHistory in #3335, reintroducing the case whereroot: true
is set in the history state. While #3335 was reverted later due to issues (#3508), I reworked the back/forward navigation problem in#3539, which again used
replaceRootHistory
. Asroot: true
would now be set in the history, we'd callreplaceRootHistory
on live navigation. The problem is that it was settingtype: "patch"
in the history, which leads to LiveView assuming that it can patch when navigating using popstate, while the actual navigation wastype: "navigate"
. After looking into it, I don't really see a reason for replaceRootHistory to exist any more.