Skip to content

Commit 484c272

Browse files
author
Chris DeMartini
authored
Merge pull request #8 from uber/fix/debounce-config-callback
fix: adding debounce to config callback
2 parents 07a6295 + 22ee184 commit 484c272

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import React, {Component} from 'react';
33
import {connect} from 'react-redux';
44
import throttle from 'lodash.throttle';
5+
import debounce from 'lodash.debounce';
56

67
import './App.css';
78

@@ -105,6 +106,7 @@ class App extends Component {
105106
this.applyingMouseActions = false;
106107
this.clickCallBack = throttle(this.clickCallBack, 200);
107108
this.hoverCallBack = throttle(this.hoverCallBack, 200);
109+
this.configCallBack = debounce(this.configCallBack, 500);
108110
}
109111

110112
// eslint-disable-next-line react/sort-comp

0 commit comments

Comments
 (0)