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.
2 parents 9a3692d + 905ca07 commit 217a290Copy full SHA for 217a290
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