Skip to content

AppHistoryEntry.sameDocument #70

Closed
@frehner

Description

@frehner

Forgive me if this is an easy/obvious question:

Currently sameDocument is defined as:

sameDocument: a boolean indicating whether this entry is for the current document, or whether navigating to it will require a full navigation (either from the network, or from the browser's back/forward cache). Note: for appHistory.current, this will always be true.

It's also said that

Note that you can check if the navigation will be same-document or cross-document via event.destination.sameDocument

In the docs about same-document navigations, it says

Same-document navigations can happen due to: ... Intercepting a cross-document navigation using the appHistory object's navigate event, and calling event.respondWith()

With that in mind, should sameDocument always change to true (if it wasn't already) in the complete event sequence steps ix and x where the promise is resolved?

Thanks in advance for your patience. 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions