-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
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
- 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.