Skip to content

Commit

Permalink
Merge pull request #1405 from storybooks/addon-knobs-performance
Browse files Browse the repository at this point in the history
When timestamps are enabled, it actually checks them before applying changes
  • Loading branch information
shilman committed Jul 22, 2017
2 parents 31255e5 + 759313e commit 63e4e41
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions addons/knobs/src/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ export default class Panel extends React.Component {

queryParams[`knob-${name}`] = Types[knob.type].serialize(knob.value);
});
this.loadedFromUrl = true;
api.setQueryParams(queryParams);
this.setState({ knobs });
}

this.loadedFromUrl = true;
api.setQueryParams(queryParams);
this.setState({ knobs });
}

reset() {
Expand Down

0 comments on commit 63e4e41

Please sign in to comment.