Uncaught TypeError: ContextHub.getStore is not a function | Community
Skip to main content
Level 3
July 17, 2019
Question

Uncaught TypeError: ContextHub.getStore is not a function

  • July 17, 2019
  • 0 replies
  • 1330 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.