From 65c8ad9ae0a3b3cb1bd8e3cfd8ca2425fbd4c08c Mon Sep 17 00:00:00 2001 From: Sven Date: Mon, 29 May 2017 19:06:50 +0200 Subject: [PATCH] Update api.md Injecting the state into a component will rerender the component on every state change instead of every action. Also see issue #709 --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index f9e12eca9..ac0248b0b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -151,7 +151,7 @@ export default connect(null, actionCreators)(TodoApp) ##### Inject `dispatch` and every field in the global state ->Don’t do this! It kills any performance optimizations because `TodoApp` will rerender after every action. +>Don’t do this! It kills any performance optimizations because `TodoApp` will rerender after every state change. >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.