tableau / extensions-api

Extensions API sample code and developer docs.
http://tableau.github.io/extensions-api
MIT License
268 stars 251 forks source link

Bug when reloading remote debugging session #173

Closed merlijnbuit closed 2 years ago

merlijnbuit commented 5 years ago

Hi guys,

We are facing an issue with the remote debugging console. Somehow it remembers something of the previous session when you hit F5. The reason why we use F5 instead of the Reload button in the extensions is because the Reload button destroys everything and I have to log in to my 'secret extension' application again.

Example: (me spraying F5 in Chromium) f5_refresh

Hitting the reload button in Chomium doesn't duplicate it, but also stills shows my current console which make me think nothing really gets reloaded.

Here is my sample code. This appears to work with all event listeners.

tableau.extensions.initializeAsync({ configure: function() {} }).then(function() {
  var dashboard = tableau.extensions.dashboardContent.dashboard;
  dashboard.worksheets[0].addEventListener('mark-selection-changed', function(event) {
    console.log(event);
  });
});
bcantoni commented 2 years ago

Closing out based on age. If this is still an issue, please reopen with a comment on the latest status and we can revisit.