Provide an onDelete() method that occurs when a web part is deleted from a page. This will allow for the web part to remove any files related to the instance being deleted.
See discussion on:
Thanks for your feedback! We like your suggestion and it’s being added to our backlog. We don’t have yet specific schedule for this, but item has been added to upcoming plans for the SPFx and since request does make sense and has been requested from other sources as well, this will be most likely implemented.
I'd like to have the option for an admin to 1) load upp the script and other resources in a customer owned or managed CDN location and 2) allow the admin to specify that location when adding the .sppkg file into the app catalog.
This would allow for more flexible usage of SPFx applications and also allow enterprises to have better governance of the script resources - which would increase the adoption of SPFx and also allow ISV's to create more solutions.11 votes
Currently if you implement site provisioning solution and you need to install some third party known app, you should activate side loading feature that is not recommended for production(by security reasons) and use method load and install.
this way has several disadvantages:
1) Customers will afraid such solution because of recommendations outlined above.
2) Upgrade process. it will "painfully" to upgrade each package on each site
3) You need an app package file to get file stream for LoadAndInstall method40 votes
Thanks for your feedback! We like your suggestion and we’re planning to build it.
- Don't see your idea?