Check the page display mode from within your SharePoint Framework extensions
In my previous post, I wrote how you could trigger the page into edit mode from within your SharePoint Framework solution. One thing which I did not explain is how you can check the current display mode your page is in. Related article: Trigger the edit page experience from your SharePoint Framework solution
Read more