Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7698

Web-packaged data service throws on disconnect

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.42.3
    • Affects Version/s: None
    • Component/s: Web
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Developer Tools

      When dataService.disconnect method is called in web environment, it throws the following error:

      Uncaught (in promise) TypeError: this._state.destroy is not a function
          disconnect webpack://@mongodb-js/compass-web/../data-service/src/data-service.ts?:935
          CompassWeb webpack://@mongodb-js/compass-web/./src/index.tsx?:173
          React 15
          disconnectCompassWeb webpack://@mongodb-js/compass-web/./sandbox/index.tsx?:150
          <anonymous> debugger eval code:1
      index.js line 7496 > eval:935:469
      

      This is due to how the devtools-connect polyfill is implemented and should be a pretty easy fix on a polyfill side

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: