We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0996a6b commit 441c73cCopy full SHA for 441c73c
README.md
@@ -252,7 +252,11 @@ A React component class that injects state and action creators into your compone
252
export default connect()(TodoApp);
253
```
254
255
-##### Inject `dispatch` and every field in the global state (SLOW! TodoApp will rerender after each action)
+##### Inject `dispatch` and every field in the global state
256
+
257
+>Don’t do this! It kills any performance optimisations because `TodoApp` will rerender after any action.
258
+>It’s better to have more granular `connect()` on several components in your view hierarchy.
259
260
```js
261
export default connect(state => state)(TodoApp);
262
0 commit comments