Tenant side spFx Application Customizer onInit not consistent
Category
- [ ] Question
- [ ] Typo
- [x ] Bug
- [ ] Additional article idea
Expected or Desired Behavior
Hi I'm expecting a Tenant deployed Application Customizer to run onInit every time a site is visited. The Application Customizer runs JS and displays a Dialog.
Observed Behavior
It always runs on a full page refresh, but randomly fails when moving from site to site using top navigation.
Steps to Reproduce
Open sharepoint site. Use top navigation to go to another site. No console errors are displayed.
Thanks for your contribution! Sharing is caring.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
SP implements a page router (this post talks about it) to implement partial page routing. Elio has written about how to address navigation events with extensions as well... suggest you read up on those.
This isn't a bug, it's just how SP works
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues