Issue with SPFx webpart cache or cookie storage - webpart properties reflecting from other env

Regular Contributor

Hi Everyone,

 

I have come across below strange issue with SPFx - 

 

  1. We have custom webapi available and that is being consumed from SPFx webpart
    • This custom webapi is hosted in two instances of Azure as App Service - webapi1 & webapi2
  2. This SPFx webpart has custom webpart properties
  3. We have 2 different environments - Dev 1 & Dev 2. Both environments have side loading enabled for site collection level App Catalog
  4. SPFx webpart of two different versions are deployment to Dev 1 & Dev 2
    • In version 1, we have 4 webpart properties
    • In version 2, we have 8 webpart properties
  5. Version 1 SPFx webpart consuming webapi 1 & Version 12SPFx webpart consuming webapi 2
  6. I have opened Dev 1 site first in one tab instance of browser and opened Dev 2 site next in second tab instance of browser 
  7. Now, if i go back to the first tab and refresh - I see that the SPFx webpart of version 1 is getting displayed like SPFx webpart version 2 instance
    • I see that 8 webpart props are there instead of 4 webpart properties 
    • Also, the webapi call is going to webapi 2 instance instead of webapi
  8. But, when i clear the cookies & cache - And browse the Dev 1 site again, it is normal 

 

Is this product issue - Any webpart properties file is being shared somehow between separate environments & the respective config file. Can you please let me know if anyone else faced this issue and any leads to resolve this issue.

 

Thanks & Regards,

Bhanu

Thanks & Regards,

Bhanu

0 Replies