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 9a3692d commit 905ca07Copy full SHA for 905ca07
docs/usage/deriving-data-selectors.md
@@ -146,7 +146,7 @@ function TodoList() {
146
// highlight-start
147
// ❌ WARNING: this _always_ returns a new reference, so it will _always_ re-render!
148
const completedTodos = useSelector(state =>
149
- state.todos.map(todo => todo.completed)
+ state.todos.filter(todo => todo.completed)
150
)
151
// highlight-end
152
}
0 commit comments