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

%3CLINGO-SUB%20id%3D%22lingo-sub-2309454%22%20slang%3D%22en-US%22%3EIssue%20with%20SPFx%20webpart%20cache%20or%20cookie%20storage%20-%20webpart%20properties%20reflecting%20from%20other%20env%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2309454%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20come%20across%20below%20strange%20issue%20with%20SPFx%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EWe%20have%20custom%20webapi%20available%20and%20that%20is%20being%20consumed%20from%20SPFx%20webpart%3CUL%3E%3CLI%3EThis%20custom%20webapi%20is%20hosted%20in%20two%20instances%20of%20Azure%20as%20App%20Service%20-%20webapi1%20%26amp%3B%20webapi2%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EThis%20SPFx%20webpart%20has%20custom%20webpart%20properties%3C%2FLI%3E%3CLI%3EWe%20have%202%20different%20environments%20-%20Dev%201%20%26amp%3B%20Dev%202.%20Both%20environments%20have%20side%20loading%20enabled%20for%20site%20collection%20level%20App%20Catalog%3C%2FLI%3E%3CLI%3ESPFx%20webpart%20of%20two%20different%20versions%20are%20deployment%20to%20Dev%201%20%26amp%3B%20Dev%202%3CUL%3E%3CLI%3EIn%20version%201%2C%20we%20have%204%20webpart%20properties%3C%2FLI%3E%3CLI%3EIn%20version%202%2C%20we%20have%208%20webpart%20properties%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EVersion%201%20SPFx%20webpart%20consuming%20webapi%201%20%26amp%3B%26nbsp%3BVersion%2012SPFx%20webpart%20consuming%20webapi%202%3C%2FLI%3E%3CLI%3EI%20have%20opened%20Dev%201%20site%20first%20in%20one%20tab%20instance%20of%20browser%20and%20opened%20Dev%202%20site%20next%20in%20second%20tab%20instance%20of%20browser%26nbsp%3B%3C%2FLI%3E%3CLI%3ENow%2C%20if%20i%20go%20back%20to%20the%20first%20tab%20and%20refresh%20-%20I%20see%20that%20the%20SPFx%20webpart%20of%20version%201%20is%20getting%20displayed%20like%20SPFx%20webpart%20version%202%20instance%3CUL%3E%3CLI%3EI%20see%20that%208%20webpart%20props%20are%20there%20instead%20of%204%20webpart%20properties%26nbsp%3B%3C%2FLI%3E%3CLI%3EAlso%2C%20the%20webapi%20call%20is%20going%20to%20webapi%202%20instance%20instead%20of%20webapi%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EBut%2C%20when%20i%20clear%20the%20cookies%20%26amp%3B%20cache%20-%20And%20browse%20the%20Dev%201%20site%20again%2C%20it%20is%20normal%26nbsp%3B%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20product%20issue%20-%20Any%20webpart%20properties%20file%20is%20being%20shared%20somehow%20between%20separate%20environments%20%26amp%3B%20the%20respective%20config%20file.%20Can%20you%20please%20let%20me%20know%20if%20anyone%20else%20faced%20this%20issue%20and%20any%20leads%20to%20resolve%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards%2C%3C%2FP%3E%3CP%3EBhanu%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards%2C%3C%2FP%3E%3CP%3EBhanu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2309454%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExtensibility%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Frequent 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