Skip to content

Commit

Permalink
add all useMemo deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tessalt committed Oct 29, 2020
1 parent 1afc87e commit d169ed9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import React, {
useState,
} from "react";
import useDebounce from "react-use/lib/useDebounce";
import useResizeObserver from "use-resize-observer";
import useResizeObserver from "use-resize-observer/polyfilled";

import {
Button,
Expand Down Expand Up @@ -57,7 +57,7 @@ const GiphyInput: FunctionComponent<Props> = ({
rating: maxRating as SearchOptions["rating"],
sort: "relevant",
});
}, [apiKey, maxRating]);
}, [apiKey, maxRating, query]);
const onChange = useCallback((evt: ChangeEvent<HTMLInputElement>) => {
setDebouncedInput(evt.target.value);
}, []);
Expand Down

0 comments on commit d169ed9

Please sign in to comment.