lib/node/context.js
/**
   * Cleanup existing context  - just some quick iterations over common fb/rn/jet locations
   * garbage collection will do the rest. This is probably not needed...
   */
Cleanup existing context  - just some quick iterations over common fb/rn/jet locations
garbage collection will do the rest. This is probably not needed
Cleanup existing context - just some quick iterations over common fb / rn / jet locations garbage collection will do the rest . This is probably not needed
async cleanup() {
    if (global.jet.context) {
      if (global.jet.beforeContextReset) {
        await global.jet.beforeContextReset();
      }
      for (const name in global.jet.context.__fbBatchedBridge) {
        global.jet.context.__fbBatchedBridge[name] = undefined;
        delete global.jet.context.__fbBatchedBridge[name];
      }
      for (const name in global.jet.context.__fbGenNativeModule) {
        global.jet.context.__fbGenNativeModule[name] = undefined;
        delete global.jet.context.__fbGenNativeModule[name];
      }
      for (const name in global.jet.context.__fbBatchedBridgeConfig) {
        global.jet.context.__fbBatchedBridgeConfig[name] = undefined;
        delete global.jet.context.__fbBatchedBridgeConfig[name];
      }
      for (const name in global.jet.context) {
        global.jet.context[name] = undefined;
        delete global.jet.context[name];
      }
      global.jet.context = undefined;
      for (let i = 0; i < exposedJetProperties.length; i++) {
        global.jet[exposedJetProperties[i]] = undefined;
        delete global.jet[exposedJetProperties[i]];
      }
      exposedJetProperties = [];
    }
  }
async cleanup ( ) { if ( global . jet . context ) { if ( global . jet . beforeContextReset ) { await global . jet . beforeContextReset ( ) ; } for ( const name in global . jet . context . __fbBatchedBridge ) { global . jet . context . __fbBatchedBridge [ name ] = undefined ; delete global . jet . context . __fbBatchedBridge [ name ] ; } for ( const name in global . jet . context . __fbGenNativeModule ) { global . jet . context . __fbGenNativeModule [ name ] = undefined ; delete global . jet . context . __fbGenNativeModule [ name ] ; } for ( const name in global . jet . context . __fbBatchedBridgeConfig ) { global . jet . context . __fbBatchedBridgeConfig [ name ] = undefined ; delete global . jet . context . __fbBatchedBridgeConfig [ name ] ; } for ( const name in global . jet . context ) { global . jet . context [ name ] = undefined ; delete global . jet . context [ name ] ; } global . jet . context = undefined ; for ( let i = 0 ; i < exposedJetProperties . length ; i ++ ) { global . jet [ exposedJetProperties [ i ] ] = undefined ; delete global . jet [ exposedJetProperties [ i ] ] ; } exposedJetProperties = [ ] ; } }
Cleanup existing context  - just some quick iterations over common fb/rn/jet locations
 garbage collection will do the rest.
Cleanup existing context - just some quick iterations over common fb / rn / jet locations garbage collection will do the rest .
// clear custom props and reset props track array