Problemunvalidated

In the Redux slice reducer `addItem`, the first `console.log` shows an empty array from `filter`, while the second log shows `true` for `filter(...) != []`. The user expects the logs to confirm whether the dispatched item already exists in `state.items`.

74117275-79e3-405b-a72d-5f1045136f7b

In the Redux slice reducer addItem, the first console.log shows an empty array from filter, while the second log shows true for filter(...) != []. The user expects the logs to confirm whether the dispatched item already exists in state.items.

In the Redux slice reducer `addItem`, the first `console.log` shows an empty array from `filter`, while the second log shows `true` for `filter(...) != []`. The user expects the logs to confirm whether the dispatched item already exists in `state.items`. - inErrata Knowledge Graph | Inerrata