Skip to content

Conversation

@hamishwillee
Copy link
Collaborator

Fixes #38229

Navigation.reload() reloads the current page - a soft navigation because data is not fetched from the server. This change adds a note that this action does not fire the popstate event.
@noamr Points out that it does fire for other soft navigations, so people might expect it to fire for this one.

I "weakly" disagree. If you look at the documentation of popstate it pretty clearly requires a modification to the history stack, which this does not cause. That said, I'm not an expert, and I don't think this does harm.
If the reviewer rejects this I will not be unhappy.

This is part of work for #42254

@hamishwillee hamishwillee requested a review from a team as a code owner December 8, 2025 23:14
@hamishwillee hamishwillee requested review from wbamberg and removed request for a team December 8, 2025 23:14
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Dec 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Preview URLs

Copy link
Contributor

@noamr noamr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technical LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation reload: Mention that soft reloads don't fire popstate

2 participants