Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move URL/history updating out of respondWith() #103

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Apr 23, 2021

This ensures that if multiple event handlers are in place, appHistory.current and location.href only update after they all have finished.

Part of #94.


Preview | Diff

This ensures that if multiple event handlers are in place, appHistory.current and location.href only update after they all have finished.

Part of #94.
@domenic domenic requested a review from natechapin April 23, 2021 17:55
@@ -464,6 +459,12 @@ An {{AppHistoryNavigateEvent}} also has an associated {{Promise}}-or-null <dfn f
1. Let |result| be the result of [=dispatching=] |event| at |appHistory|.
1. If [=this=]'s [=relevant global object=]'s [=Window/browsing context=] is null, then return false.
<p class="note">This can occurr if an event listener disconnected the <{iframe}> corresponding to [=this=]'s [=relevant global object=].</p>
1. If |event|'s [=AppHistoryNavigateEvent/navigation action promise=] is non-null, then:
Copy link
Collaborator

Choose a reason for hiding this comment

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

navigation action promise will only be non-null here if respondeWith() was called, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Exactly, it's basically synonymous with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants