From 38b1082772d47a7d6820e66faaf0494133215c82 Mon Sep 17 00:00:00 2001 From: Alfred Melch Date: Sat, 14 Dec 2019 20:02:56 +0100 Subject: [PATCH] fix behaviour --- src/components/Options.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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)} />