Relative Content

Tag Archive for javascriptreactjsreact-redux

Redux reducer remove item from nested object state

I’m trying to remove an item from the state in a reducer after a successful api call to delete an item. I think the problem is that I am not removing the deleted item correctly. I tried a number of different ways using filter, map and some, but I can’t seem to get the combination correct to remove the deleted record from the state.