mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
refactor(inspector-monitor): debounce input search updates
This commit is contained in:
parent
9c63c712fc
commit
229869698b
|
@ -21,6 +21,7 @@ import ActionList from './ActionList';
|
||||||
import ActionPreview, { Tab } from './ActionPreview';
|
import ActionPreview, { Tab } from './ActionPreview';
|
||||||
import getInspectedState from './utils/getInspectedState';
|
import getInspectedState from './utils/getInspectedState';
|
||||||
import createDiffPatcher from './createDiffPatcher';
|
import createDiffPatcher from './createDiffPatcher';
|
||||||
|
import debounce from 'lodash.debounce';
|
||||||
import {
|
import {
|
||||||
ActionForm,
|
ActionForm,
|
||||||
changeActionFormValues,
|
changeActionFormValues,
|
||||||
|
@ -407,9 +408,9 @@ class DevtoolsInspector<S, A extends Action<unknown>> extends PureComponent<
|
||||||
this.props.dispatch(sweep());
|
this.props.dispatch(sweep());
|
||||||
};
|
};
|
||||||
|
|
||||||
handleSearch = (val: string) => {
|
handleSearch = debounce((val: string) => {
|
||||||
this.handleActionFormChange({ searchValue: val });
|
this.handleActionFormChange({ searchValue: val });
|
||||||
};
|
}, 200);
|
||||||
|
|
||||||
handleSelectAction = (
|
handleSelectAction = (
|
||||||
e: React.MouseEvent<HTMLDivElement>,
|
e: React.MouseEvent<HTMLDivElement>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user