Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Cache enabling "OfflineHandler()" is getting executed before VB enter event in AppModule.js

Summary:

Hi I am implementing cache strategies in my Project. want to enable/disable this flag based on some external Variable Data, hence i had created a "VB-enter" event and from there I am setting flag value based on some condition for cache strategy. but when i executed this code the I found cache enabling code is even getting executed before VB Enter.

Since Offline Handeler is getting executed before VB enter event hence i am not able to set flag value "var flag=sessionStorage.getItem("SessionFlagName");".

Please help.


AppModule.prototype.vbEnter = function (arg1) {

  sessionStorage.setItem("SessionFlagName",arg1);

  console.log("vbEnter Line 133:"+sessionStorage.getItem("SessionFlagName"));

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!