Skip to content

Commit

Permalink
add props.query to dependency list
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-dupre authored and bell-steven committed Mar 15, 2021
1 parent be4923b commit d1657fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GooglePlacesAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => {
};

// eslint-disable-next-line react-hooks/exhaustive-deps
const debounceData = useMemo(() => debounce(_request, props.debounce), []);
const debounceData = useMemo(() => debounce(_request, props.debounce), [props.query]);

const _onChangeText = (text) => {
setStateText(text);
Expand Down

0 comments on commit d1657fa

Please sign in to comment.