client/src/luigi-client.js
function setContext(rawData) {
    for (var index = 0; index < defaultContextKeys.length; index++) {
      var key = defaultContextKeys[index];
      try {
        if (typeof rawData[key] === 'string') {
          rawData[key] = JSON.parse(rawData[key]);
        }
      } catch (e) {
        console.info(
          'unable to parse luigi context data for',
          key,
          rawData[key],
          e
        );
      }
    }
    currentContext = rawData;
  }
function setContext(rawData) {
    for (var index = 0; index < defaultContextKeys.length; index++) {
      var key = defaultContextKeys[index];
      try {
        if (typeof rawData[key] === 'string') {
          rawData[key] = JSON.parse(rawData[key]);
        }
      } catch (e) {
        console.info(
          'unable to parse luigi context data for',
          key,
          rawData[key],
          e
        );
      }
    }
    currentContext = rawData;
  }
function setContext ( rawData ) { for ( var index = 0 ; index < defaultContextKeys . length ; index ++ ) { var key = defaultContextKeys [ index ] ; try { if ( typeof rawData [ key ] === 'string' ) { rawData [ key ] = JSON . parse ( rawData [ key ] ) ; } } catch ( e ) { console . info ( 'unable to parse luigi context data for' , key , rawData [ key ] , e ) ; } } currentContext = rawData ; }
Save context data every time navigation to a different node happens
@private
Save context data every time navigation to a different node happens