Skip to content

spfx listview command  #4882

@EricZhaoM

Description

@EricZhaoM

Category

  • Question
  • Typo
  • Bug
  • Additional article idea
  • Example checked item (delete this line)

Expected or Desired Behavior

when there are more lists on the site, and click the left navigation to the list, the onInit() and onListViewUpdated just execute once to the every list, when you click the navigation back to the list from other list, the two functions not execute .

Observed Behavior

when there are more lists on the site, and click the left navigation to the list, the onInit() and onListViewUpdated just execute once to the every list, when you click the navigation back to the list from other list, the two functions not execute .

Steps to Reproduce

1.Created a new SPFX ListView Command Set as in Microsoft site
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api
2. code: public onInit(): Promise {
alert(1);
return Promise.resolve();
}
public onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void {
alert(2);
}
3. deploy on the sharepoint

  1. click the left navigation to the list first time, the two functions execute normally, then click the navigation to the other list, the two functions execute normally too, but then click the navigation back to the list, the two functions not execute

Submission Guidelines

I think is a big bug about the spfx listview command, because I want show the button by the list title, but when back to the list, the function not execute, so the button don't show anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-extensionsCategory: SharePoint Framework Extensionsstatus:to-be-reviewedIssue needs to be reviewed by Microsoft for additional follow up / review.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions