Skip to content

Commit 15e8747

Browse files
committed
add note for mergeProps
1 parent ee81e96 commit 15e8747

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/connect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ The fields in the plain object you return from it will be used as the props for
203203
204204
The return value of `mergeProps` is referred to as `mergedProps` and the fields will be used as the props for the wrapped component.
205205
206+
> Note: Creating new values in mergeProps will cause re-renders. It is recommended that you memoize fields in order to avoid unnecessary re-renders.
207+
206208
### `options?: Object`
207209
208210
```js

0 commit comments

Comments
 (0)