We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14ac0f commit b53a524Copy full SHA for b53a524
client/src/scenes/Home/Home.jsx
@@ -36,10 +36,11 @@ class Home extends Component {
36
this.querySearchProvider()
37
}
38
39
- querySearchProvider = debounce(
40
- () => this.setState(state => ({ debouncedSearchText: state.searchText })),
41
- 200
42
- )
+ setDebounceTextSearch = () => {
+ this.setState(state => ({ debouncedSearchText: state.searchText }))
+ }
+
43
+ querySearchProvider = debounce(this.setDebounceTextSearch, 200)
44
45
setSearchLoading = loading => this.setState({ searchLoading: loading })
46
0 commit comments