-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Description
Hi,
in the documentation:
It says, that injecting the complete state into a component is a performance killer, since the component would re-render on every action.
My understanding is, that the component would only re-render on a state change, since the default guards (like areStatesEqual and areStatePropsEqual) would still work. If my understanding is correct and since some actions might only result in a side effect (when using redux-saga, for example), I think the documentation should rather say:
"Don’t do this! It kills any performance optimizations because TodoApp will rerender after every state change."
Metadata
Metadata
Assignees
Labels
No labels