sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Tenant side spFx Application Customizer onInit not consistent

Open monzerhijazi opened this issue 6 years ago • 3 comments

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.

monzerhijazi avatar Dec 24 '19 15:12 monzerhijazi

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Dec 24 '19 15:12 msft-github-bot

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

andrewconnell avatar Dec 31 '19 13:12 andrewconnell

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

msft-github-bot avatar Jan 23 '20 00:01 msft-github-bot