Repository: SharePoint/sp-dev-docs

Issue #9166: ListView Command Set not loading when browse to the list from navigation
Created: 2023-08-28T18:18:34Z
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested

 💥 Internet Explorer
 💥 Microsoft Edge
 💥 Google Chrome
 💥 FireFox
 💥 Safari
 mobile (iOS/iPadOS)
 mobile (Android)
 not applicable
 other (enter in the "Additional environment details" area below)

Additional environment details

browser version
SPFx version
Node.js version
etc

Describe the bug / error
When browsing to a list that has a Command Set from quick navigation it will not load the Command Set on initial load.
If you refresh the page it will load it.
Issue is not present if you browse direct to list (using view url) or if you start from site contents page.
Steps to reproduce
1.Create an OOTB listview command set extension for lists and ContextMenu - https://learn.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api
2. Upload sppkg to tenant app catalog
3. Add the app to a team site
4. Create a simple list and add an item
5. Open an incognito browser session and browse to site
6. Using quick navigation go to list
7. Click on ContextMenu button - you will not see the commands
8. Refresh the page and click again on Contextmenu - commands will showing
Expected behavior
We should see Commands of Command set from initial load of the list.

Duplicate issue #9184: The SPFx ListView Command Set extension doesn't load during partial page loads
Created: 2023-09-05T23:30:24Z
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested

 💥 Internet Explorer
 💥 Microsoft Edge
 💥 Google Chrome
 💥 FireFox
 💥 Safari
 mobile (iOS/iPadOS)
 mobile (Android)
 not applicable
 other (enter in the "Additional environment details" area below)

Additional environment details

browser version: 116.0.1938.62 (Official build) (64-bit)
SPFx version: 1.15.2
Node.js version: 14.17.0

Describe the bug / error
During partial page loads, specifically when navigating to the list view page using the quick launch, the SPFx ListView Command Set extension fails to load.
Steps to reproduce

Deploy the SPFx ListView Command Set extension app.
Install the app on the site
Add a link to the listView page on the quick launch.
Open (reload page) any site page that does not contain any listView webpart. Note that pages with listView webparts may initialize all ListView Command Sets.
Click the link created in step 2 to open the page with partial page load behavior.
Confirm that the deployed app is not initialized or loaded.
Reload the page to observe that the deployed app is initialized and loaded on a full page reload.

You can also verify this by checking the Network tab in the browser's Developer Tools, where you will notice that the JavaScript file for the app is not requested at all.
Expected behavior
The SPFx ListView Command Set extension successfully loads during partial page loads.

Closing comment (2023-09-06T13:35:00Z): dupe of #9166