Javascript – Deleting product from added bags isn't working in Redux-Toolkit
I'm using Redux-Toolkit and trying to delete a product from my cart (Bag) but it's not working when I'm trying to use removeBook(state, action) { state.books = state.books.filter(book => book.title !== action.payload) } whereas it works in this way removeBook(state,…