diff --git a/src/components/Options.js b/src/components/Options.js index a6c3a51..bb147de 100644 --- a/src/components/Options.js +++ b/src/components/Options.js @@ -1,4 +1,4 @@ -import React, { useCallback } from 'react' +import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { debounce } from 'debounce' @@ -12,15 +12,13 @@ export const Options = () => { return (
+

Options

dispatch(setMaxLength(val)), 100, true), - [dispatch] - )} + onChange={debounce(val => dispatch(setMaxLength(val)), 100)} />