Open salascz opened 1 year ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@salascz - thanks for submitting the issue.
First thing first - web parts from the tenant app catalog automatically update the scripts for all instances. It means if you upload v2 to the tenant app catalog all sites that use this web part will automatically serve v2 of the JS/CSS.
So, maybe your extra step with site collection app catalog is not needed.
However, the issue is still valid and we'll be looking into it.
@AJIXuMuK - you are correct, an update in the tenant app catalog would solve the issue. Unfortunately, such an update is quite difficult (time-consuming because of processes, SDLC, release planning, etc., and requires other team's involvement in our case). In opposition to this, I can make changes on site-collection level without any restriction.
Thanks for looking into it.
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
Additional environment details
Describe the bug / error
Hello, I have found a weird behaviour of partial page load for cases when you are working with different versions of the webpart.
Imagine you have a WebPart stored in tenant app catalog. The WebPart is in version v1. There is a quite long process to get the WebPart updated to new version in my company, so we are using Site application catalog to "override" the tenant version (e.g., v2). This is working perfectly when you working on same site or when you perform full reload - the site version (v2) of the script is loaded and WebPart is rendered correctly.
Imagine you have a link on the WebPart page that redirect users to other site, where the WebPart is used in v1 (loaded from tenant catalog). The v1 version of the WebPart is rendered correctly.
The issue occurs when the user use "Back" button in the browser to return to previous page (pointing to the site with v2 version of the WebPart) -> SharePoint use partial load (e.g., header is not refreshed), there seem to be 2 versions of the webpart script loaded and the tenant version (v1) wins :-( -> the webpart is not rendered correctly
It does not look like an issue on our side (I am experiencing this issue with quite well known "Modern Script Editor WebPart" or "PnP Modern Search" webparts
Thanks
Steps to reproduce
Expected behavior
It should use the webpart script from site collection app catalog (at it would use after the page refresh)