We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e752ff commit c0e1956Copy full SHA for c0e1956
1 file changed
index.js
@@ -29,14 +29,16 @@ class Geocoder extends PureComponent {
29
value: this.props.value || null
30
}
31
32
- _throttledLoadOptions = throttle(this.loadOptions, this.props.rateLimit || 500)
33
-
34
cacheOptions (options) {
35
options.forEach((o) => {
36
this.options[o.value] = o.feature
37
})
38
39
+ componentWillMount () {
+ this._throttledLoadOptions = throttle(this.loadOptions, this.props.rateLimit || 500)
40
+ }
41
+
42
componentWillReceiveProps (nextProps) {
43
if (!shallowEqual(nextProps.value, this.props.value)) {
44
this.setState({value: nextProps.value})
0 commit comments