Categories
Development

Redux state change does not rerenders datatable

**Here is the cart imports and state const Cart = ({ cart, setActiveTab, removeFromCart, updateQuantity }) => { const [selectedRows , setSelectedRows] = useState([]); const [toggleCleared, setToggleCleared] = useState(false); const [products, setProducts] = useState(cart.products) } const columns = [ { name: ‘Product Name’, selector: ‘name’, sortable: true, }, { name: ‘Product Price’, selector: ‘price’, sortable: […]