Skip to content

Commit

Permalink
Fix a typo (#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
koalex authored and timdorr committed Jul 10, 2017
1 parent e9067e6 commit d019f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/UsingImmutableJS.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Smart components that access the store via React Redux’s `connect` function mu

### Never use `toJS()` in `mapStateToProps`

Converting an Immutable.JS object to a JavaScript object using `toJS()` will return a new object every time. If you do this in `mapSateToProps`, you will cause the component to believe that the object has changed every time the state tree changes, and so trigger an unnecessary re-render.
Converting an Immutable.JS object to a JavaScript object using `toJS()` will return a new object every time. If you do this in `mapStateToProps`, you will cause the component to believe that the object has changed every time the state tree changes, and so trigger an unnecessary re-render.

#### Further Information

Expand Down

0 comments on commit d019f11

Please sign in to comment.