Skip to content

Commit 4887df6

Browse files
committed
fix(withBreakpoints): add eslint fixes for debounce
1 parent f184177 commit 4887df6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/withBreakpoints.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ const Context = React.createContext();
88
const debounce = (func, interval) => {
99
let timeout;
1010
return (...args) => {
11-
const context = this;
12-
let later = () => {
11+
const later = () => {
1312
timeout = null;
14-
func.apply(context, args);
15-
}
13+
func.apply(this, args);
14+
};
1615
clearTimeout(timeout);
1716
timeout = setTimeout(later, interval);
1817
};

0 commit comments

Comments
 (0)