From 13f43dafd623e3b488f2dcbaa54d55242562eee8 Mon Sep 17 00:00:00 2001 From: Josh Story Date: Tue, 1 Sep 2015 23:40:06 -0700 Subject: [PATCH] clarify state => state mapping admonition clarifying admonition against listening to the entire state in `connect()` resolves #83 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0fbef347..ffa66a4a4 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,8 @@ export default connect()(TodoApp); ##### Inject `dispatch` and every field in the global state >Don’t do this! It kills any performance optimisations because `TodoApp` will rerender after every action. ->It’s better to have more granular `connect()` on several components in your view hierarchy. +>It’s better to have more granular `connect()` on several components in your view hierarchy that each only +>listen to a relevant slice of the state. ```js export default connect(state => state)(TodoApp);