Access to page/item properties from the context object
If I view the HTML source of a modern page I see page context info for properties the item/current page assigned to an internal variable spClientSidePageContext which is passed into SPFx bootstrapping. This object also has a property spPageContextInfo which is made available via this.context.pageContext in SPFx.
Are there plans or any chance we can access the item property as well, to avoid executing an extra HTTP call to fetch this information? Seems a waste of resources to re-fetch something which is already present on the page :)
Paul Schaeflein commented
One of the properties of the spClientSidePageContext is the UniqueId. This UniqueId property is needed to get the page using the Pages endpoint of the Microsoft Graph.