client/src/luigi-client.js
function addContextUpdateListener(
    contextUpdatedFn
  ) {
    var id = _getRandomId();
    _onContextUpdatedFns[id] = contextUpdatedFn;
    if (luigiInitialized && isFunction(contextUpdatedFn)) {
      contextUpdatedFn(currentContext.context);
    }
    return id;
  }
function addContextUpdateListener(
    contextUpdatedFn
  ) {
    var id = _getRandomId();
    _onContextUpdatedFns[id] = contextUpdatedFn;
    if (luigiInitialized && isFunction(contextUpdatedFn)) {
      contextUpdatedFn(currentContext.context);
    }
    return id;
  }
function addContextUpdateListener ( contextUpdatedFn ) { var id = _getRandomId ( ) ; _onContextUpdatedFns [ id ] = contextUpdatedFn ; if ( luigiInitialized && isFunction ( contextUpdatedFn ) ) { contextUpdatedFn ( currentContext . context ) ; } return id ; }
Registers a listener called with the context object upon any navigation change.
@param {function} contextUpdatedFn the listener function called each time Luigi context changes
@memberof lifecycle
Registers a listener called with the context object upon any navigation change .