Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Update docs for mapPropsOnChange()
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Nov 17, 2015
1 parent 1841580 commit 80df8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ const omitProps = (keys, BaseComponent) => mapProps(omit(keys), BaseComponent);
```js
mapPropsOnChange(
depdendentPropKeys: Array<string>,
propsMapper: (ownerProps: Object) => Object,
propsMapper: (dependentProps: Object) => Object,
BaseComponent: ReactElementType
): ReactElementType
```

Same as `mapProps()`, but child props are only re-computed when one of the props specified by `dependentPropKeys` has been updated. This helps ensure that computationally intense `propsMapper` functions are only executed when necessary.
Similar to as `mapProps()`, but child props are only re-computed when one of the props specified by `dependentPropKeys` has changed. This helps ensure that computationally intense `propsMapper` functions are only executed when necessary.

### `withProps()`

Expand Down

0 comments on commit 80df8ea

Please sign in to comment.