KEMBAR78
[Debugger Plugin] Remove "Refresh" Button from Value Cards by caisq · Pull Request #1017 · tensorflow/tensorboard · GitHub
Skip to content

Conversation

@caisq
Copy link
Contributor

@caisq caisq commented Mar 5, 2018

  • Instead, bind the refresh() method to on-change events of the
    Slicing and Time Indices input boxes.

* Instead, bind the refresh() method to on-change events of the
  Slicing and Time Indices input boxes.
Copy link
Member

@chihuahua chihuahua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me. If we need better performance in the future, we could always debounce ie,

on-change="requestRefresh"
...
refreshPending: Boolean,
...
requestRefresh() {
  if (this.refreshPending) {
    return;
  }
  this.set('refreshPending', true);

  this.async(() => {
    this.set('refreshPending', false);
    this.refresh();
  }, 300);
},

@chihuahua chihuahua merged commit e0957ba into tensorflow:master Mar 5, 2018
@caisq
Copy link
Contributor Author

caisq commented Mar 5, 2018

Got it! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants