-
Notifications
You must be signed in to change notification settings - Fork 5
sp core library.session.pageid
Home > @microsoft/sp-core-library > Session > pageId
A unique identifier for the current page within the client-side application.
Signature:
static get pageId(): Guid;
A unique identifier used to correlate logging and other diagnostic information. Whereas the Session.applicationId tracks the entire lifetime of the client-side application instance, the pageId tracks an individual "page" that is rendered.
For example, suppose that the application initially loads PageA, then the user does in-place navigation (via the history.pushState() API) to PageB, then navigates back to PageA, and finally they close the browser tab. During this sequence, the applicationId will remain the same, however the pageId will change on each navigation. The 3 different pageId values are used by the diagnostics e.g. to track success/failure statistics for PageA independently of PageB.
The concept of a page is subjective and defined by the router for a particular application.