Skip to content

Commit 1477ee2

Browse files
authored
remove dependency from google initialization hook (#99)
1 parent b98ab54 commit 1477ee2

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2+
.DS_Store
23
/node_modules/

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function ReactGoogleAutocomplete(props) {
154154
return function () {
155155
return event.current ? event.current.remove() : undefined;
156156
};
157-
}, [types, options, fields, componentRestrictions, apiKey, onPlaceSelected, handleLoadScript, autocompleteRef, bounds]);
157+
}, []);
158158

159159
return _react2.default.createElement("input", _extends({
160160
ref: function ref(el) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-google-autocomplete",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "React component for google autocomplete.",
55
"main": "index.js",
66
"types": "index.d.ts",

src/index.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,7 @@ function ReactGoogleAutocomplete(props) {
136136
}
137137

138138
return () => (event.current ? event.current.remove() : undefined);
139-
}, [
140-
types,
141-
options,
142-
fields,
143-
componentRestrictions,
144-
apiKey,
145-
onPlaceSelected,
146-
handleLoadScript,
147-
autocompleteRef,
148-
bounds,
149-
]);
139+
}, []);
150140

151141
return (
152142
<input

0 commit comments

Comments
 (0)