Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Uncaught TypeError: ContextHub.getStore is not a function

Avatar

Level 3

When we are trying to get/set context hub data to a store, it is throwing this exception Uncaught TypeError: ContextHub.getStore is not a function

we are loading login.js (which has that code throwing exception ) is loaded after the context hub kernel JS

this is exact line which throws this error

ContextHub.getStore('servicenow-sso').setItem('userName',  xxyyzz);

this is happening only in Chrome when we try to reload page (to trigger some custom auth handle class) using window.location.reload() method.

Same code/functionality when tested on Safari browser works fine with no such error.

Any suggestion or help on what could be causing this issue?

0 Replies