Skip to content

Commit b5c2ff3

Browse files
committed
Add note that all non-primitive prop values should be memoized.
1 parent e13ab28 commit b5c2ff3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ Link tag in header:
3737

3838

3939
## Props
40-
Only `mapRef` and `mapboxApiAccessToken` are required.
40+
Only `mapRef` and `mapboxApiAccessToken` are required.
41+
42+
All non-primitive prop values should be memoized.
4143

4244
| Name | Type | Default | Description |
4345
|--- | --- | --- | --- |

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-map-gl-geocoder",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "React wrapper for mapbox-gl-geocoder for use with react-map-gl",
55
"source": "src/index.js",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)